Minor script fix

This commit is contained in:
Brian Behlendorf 2009-01-20 21:34:09 -08:00
parent 623125820d
commit 9991894b21
1 changed files with 9 additions and 2 deletions

View File

@ -158,6 +158,7 @@ if check_modules; then
fi fi
fi fi
# Wait for device creation
while [ ! -c /dev/zpios ]; do while [ ! -c /dev/zpios ]; do
sleep 1 sleep 1
done done
@ -181,12 +182,18 @@ echo
date date
zpios_start zpios_start
zpios_stop zpios_stop
print_stats
if [ ${VERBOSE} ]; then
print_stats
fi
# Destroy the zpool configuration # Destroy the zpool configuration
./zpool-create.sh ${VERBOSE_FLAG} -p ${ZPOOL_NAME} -c ${ZPOOL_CONFIG} -d || exit 1 ./zpool-create.sh ${VERBOSE_FLAG} -p ${ZPOOL_NAME} -c ${ZPOOL_CONFIG} -d || exit 1
# Unload the test module stack # Unload the test module stack and wait for device removal
unload_modules unload_modules
while [ -c /dev/zpios ]; do
sleep 1
done
exit 0 exit 0