summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-07-21 17:11:47 -0700
committerBrian Behlendorf <[email protected]>2009-07-21 17:11:47 -0700
commite85aaac1314dd1f754467d48d0c3fe6a33972ee0 (patch)
tree22b063278527b31aef0a535b32e88a8f4b19772d /scripts
parentd996632f3ad2d079e9edfd1051ad4e8379b8ba19 (diff)
parent2bfdf4079b58e8351fd9bc1796d8ffeab6a3b148 (diff)
Merge branch 'linux-arc' into refs/top-bases/linux-zfs-branch
Diffstat (limited to 'scripts')
-rw-r--r--scripts/zpool-config/lo-raid10.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/zpool-config/lo-raid10.sh b/scripts/zpool-config/lo-raid10.sh
index ce528004c..64602aec3 100644
--- a/scripts/zpool-config/lo-raid10.sh
+++ b/scripts/zpool-config/lo-raid10.sh
@@ -24,7 +24,7 @@ zpool_create() {
done
for FILE in ${FILES_M2}; do
- DEVICE=`/sbin/losetup -f`
+ DEVICE=`unused_loop_device`
msg "Creating ${FILE} using loopback device ${DEVICE}"
rm -f ${FILE} || exit 1
dd if=/dev/zero of=${FILE} bs=1024k count=256 &>/dev/null ||