summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-01-16 14:29:31 -0800
committerBrian Behlendorf <[email protected]>2009-01-16 14:29:31 -0800
commit6a6da5a14da97652adfaf65b0f993af4318b0810 (patch)
tree06e55b84d0a8460c289bd1d1b1b20197995e9fb7 /scripts
parent7b5ceef9df956a682c03704d6ac89da3dc6f5251 (diff)
Minor verbage cleanup
Diffstat (limited to 'scripts')
-rw-r--r--scripts/zpool-config/lo-raid0.cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/zpool-config/lo-raid0.cfg b/scripts/zpool-config/lo-raid0.cfg
index f306d57e9..75a411c9b 100644
--- a/scripts/zpool-config/lo-raid0.cfg
+++ b/scripts/zpool-config/lo-raid0.cfg
@@ -8,10 +8,12 @@ DEVICES="/tmp/zpool-vdev0 \
/tmp/zpool-vdev2 \
/tmp/zpool-vdev3 \
/tmp/zpool-vdev4"
+DEVICE_SIZE=512
for DEV in ${DEVICES}; do
+ msg "Creating ${DEV} loopback device (${DEVICE_SIZE} Mib)"
rm -f ${DEV} || exit 1
- dd if=/dev/zero of=${DEV} bs=1024k count=512 || exit 1
+ dd if=/dev/zero of=${DEV} bs=1024k count=${DEVICE_SIZE} &>/dev/null || exit 1
losetup `/sbin/losetup -f` ${DEV} || exit 1
done