mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 03:19:35 +03:00
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:
parent
cf47fad67d
commit
7dc3830c0f
@ -36,6 +36,7 @@ clean:
|
|||||||
done
|
done
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
@$(ZFS) -u
|
||||||
@echo
|
@echo
|
||||||
@echo -n "===================================="
|
@echo -n "===================================="
|
||||||
@echo -n " ZTEST "
|
@echo -n " ZTEST "
|
||||||
|
@ -732,6 +732,7 @@ clean:
|
|||||||
done
|
done
|
||||||
|
|
||||||
check:
|
check:
|
||||||
|
@$(ZFS) -u
|
||||||
@echo
|
@echo
|
||||||
@echo -n "===================================="
|
@echo -n "===================================="
|
||||||
@echo -n " ZTEST "
|
@echo -n " ZTEST "
|
||||||
|
@ -60,6 +60,7 @@ fi
|
|||||||
|
|
||||||
# Perform pre-cleanup is requested
|
# Perform pre-cleanup is requested
|
||||||
if [ ${CLEANUP} ]; then
|
if [ ${CLEANUP} ]; then
|
||||||
|
${ZFS_SH} -u
|
||||||
cleanup_md_devices
|
cleanup_md_devices
|
||||||
cleanup_loop_devices
|
cleanup_loop_devices
|
||||||
rm -f /tmp/zpool.cache.*
|
rm -f /tmp/zpool.cache.*
|
||||||
|
@ -88,6 +88,7 @@ fi
|
|||||||
|
|
||||||
# Perform pre-cleanup is requested
|
# Perform pre-cleanup is requested
|
||||||
if [ ${CLEANUP} ]; then
|
if [ ${CLEANUP} ]; then
|
||||||
|
${ZFS_SH} -u
|
||||||
cleanup_md_devices
|
cleanup_md_devices
|
||||||
cleanup_loop_devices
|
cleanup_loop_devices
|
||||||
rm -f /tmp/zpool.cache.*
|
rm -f /tmp/zpool.cache.*
|
||||||
|
Loading…
Reference in New Issue
Block a user