Merge commit 'refs/top-bases/linux-docs' into linux-docs

This commit is contained in:
Brian Behlendorf 2009-01-20 21:36:45 -08:00
commit 19a153244e
3 changed files with 6 additions and 6 deletions

View File

@ -16,8 +16,8 @@ zpool_create() {
die "Error $? creating ${FILE}" die "Error $? creating ${FILE}"
done done
msg ${CMDDIR}/zpool/zpool create raidz ${ZPOOL_NAME} ${FILES} msg ${CMDDIR}/zpool/zpool create ${ZPOOL_NAME} raidz ${FILES}
${CMDDIR}/zpool/zpool create raidz ${ZPOOL_NAME} ${FILES} || exit 1 ${CMDDIR}/zpool/zpool create ${ZPOOL_NAME} raidz ${FILES} || exit 1
} }
zpool_destroy() { zpool_destroy() {

View File

@ -16,8 +16,8 @@ zpool_create() {
die "Error $? creating ${FILE}" die "Error $? creating ${FILE}"
done done
msg ${CMDDIR}/zpool/zpool create raidz2 ${ZPOOL_NAME} ${FILES} msg ${CMDDIR}/zpool/zpool create ${ZPOOL_NAME} raidz2 ${FILES}
${CMDDIR}/zpool/zpool create raidz2 ${ZPOOL_NAME} ${FILES} || exit 1 ${CMDDIR}/zpool/zpool create ${ZPOOL_NAME} raidz2 ${FILES} || exit 1
} }
zpool_destroy() { zpool_destroy() {

View File

@ -14,7 +14,7 @@ zpool_create() {
DEVICE=`/sbin/losetup -f` DEVICE=`/sbin/losetup -f`
msg "Creating ${FILE} using loopback device ${DEVICE}" msg "Creating ${FILE} using loopback device ${DEVICE}"
rm -f ${FILE} || exit 1 rm -f ${FILE} || exit 1
dd if=/dev/zero of=${FILE} bs=1024k count=256 status=noxfer &>/dev/null || dd if=/dev/zero of=${FILE} bs=1024k count=256 &>/dev/null ||
die "Error $? creating ${FILE}" die "Error $? creating ${FILE}"
losetup ${DEVICE} ${FILE} || losetup ${DEVICE} ${FILE} ||
die "Error $? creating ${FILE} -> ${DEVICE} loopback" die "Error $? creating ${FILE} -> ${DEVICE} loopback"