Remove spl/zfs modules as part of cleanup

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.
This commit is contained in:
Brian Behlendorf 2010-11-11 10:17:02 -08:00
parent cf47fad67d
commit 7dc3830c0f
4 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ clean:
done
check:
@$(ZFS) -u
@echo
@echo -n "===================================="
@echo -n " ZTEST "

View File

@ -732,6 +732,7 @@ clean:
done
check:
@$(ZFS) -u
@echo
@echo -n "===================================="
@echo -n " ZTEST "

View File

@ -60,6 +60,7 @@ fi
# Perform pre-cleanup is requested
if [ ${CLEANUP} ]; then
${ZFS_SH} -u
cleanup_md_devices
cleanup_loop_devices
rm -f /tmp/zpool.cache.*

View File

@ -88,6 +88,7 @@ fi
# Perform pre-cleanup is requested
if [ ${CLEANUP} ]; then
${ZFS_SH} -u
cleanup_md_devices
cleanup_loop_devices
rm -f /tmp/zpool.cache.*