Remove spl/zfs modules as part of cleanup
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Nov 2010 18:17:02 +0000 (10:17 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Nov 2010 19:40:06 +0000 (11:40 -0800)
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.

scripts/Makefile.am
scripts/Makefile.in
scripts/zconfig.sh
scripts/zfault.sh

index cc910ba..3dc1e67 100644 (file)
@@ -36,6 +36,7 @@ clean:
        done
 
 check:
+       @$(ZFS) -u
        @echo
        @echo -n "===================================="
        @echo -n " ZTEST "
index 8c6e67d..3e68eda 100644 (file)
@@ -732,6 +732,7 @@ clean:
        done
 
 check:
+       @$(ZFS) -u
        @echo
        @echo -n "===================================="
        @echo -n " ZTEST "
index 674ec57..31c3011 100755 (executable)
@@ -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.*
index 08d8225..7f77404 100755 (executable)
@@ -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.*