Merge commit 'refs/top-bases/linux-docs' into linux-docs
This commit is contained in:
commit
ce135674d9
|
@ -8,10 +8,12 @@ DEVICES="/tmp/zpool-vdev0 \
|
||||||
/tmp/zpool-vdev2 \
|
/tmp/zpool-vdev2 \
|
||||||
/tmp/zpool-vdev3 \
|
/tmp/zpool-vdev3 \
|
||||||
/tmp/zpool-vdev4"
|
/tmp/zpool-vdev4"
|
||||||
|
DEVICE_SIZE=512
|
||||||
|
|
||||||
for DEV in ${DEVICES}; do
|
for DEV in ${DEVICES}; do
|
||||||
|
msg "Creating ${DEV} loopback device (${DEVICE_SIZE} Mib)"
|
||||||
rm -f ${DEV} || exit 1
|
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
|
losetup `/sbin/losetup -f` ${DEV} || exit 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue