3 # 4 File Raid-0 Configuration
6 FILES="/tmp/zpool-vdev0 \
12 for FILE in ${FILES}; do
13 msg "Creating ${FILE}"
14 rm -f ${FILE} || exit 1
15 dd if=/dev/zero of=${FILE} bs=1024k count=0 seek=256 \
16 &>/dev/null || die "Error $? creating ${FILE}"
19 msg ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${FILES}
20 ${ZPOOL} create ${FORCE_FLAG} ${ZPOOL_NAME} ${FILES} || exit 1
24 msg ${ZPOOL} destroy ${ZPOOL_NAME}
25 ${ZPOOL} destroy ${ZPOOL_NAME}
27 for FILE in ${FILES}; do
28 msg "Removing ${FILE}"
29 rm -f ${FILE} || exit 1