The idea behind the '-c' flag is to cleanup everything from a
previous test run which might cause the test script to fail.
This should also include removing the previously loaded module.
This makes it a little easier to run 'zconfig.sh -c', however
remember this is a test script and it will take all of your
other zpools offline for the purposes of the test. This notion
has also been extended to the default 'make check' behavior.
@echo
@echo -n "===================================="
@echo -n " ZTEST "
@echo
@echo -n "===================================="
@echo -n " ZTEST "
@echo
@echo -n "===================================="
@echo -n " ZTEST "
@echo
@echo -n "===================================="
@echo -n " ZTEST "
# Perform pre-cleanup is requested
if [ ${CLEANUP} ]; then
# Perform pre-cleanup is requested
if [ ${CLEANUP} ]; then
cleanup_md_devices
cleanup_loop_devices
rm -f /tmp/zpool.cache.*
cleanup_md_devices
cleanup_loop_devices
rm -f /tmp/zpool.cache.*
# Perform pre-cleanup is requested
if [ ${CLEANUP} ]; then
# Perform pre-cleanup is requested
if [ ${CLEANUP} ]; then
cleanup_md_devices
cleanup_loop_devices
rm -f /tmp/zpool.cache.*
cleanup_md_devices
cleanup_loop_devices
rm -f /tmp/zpool.cache.*