mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
Update 'zfs.sh -u' to umount all zfs filesystems
Before it is safe to unload the zfs module stack all mounted zfs filesystems must be unmounted. If they are not unmounted, there will be references held on the modules and the stack cannot be removed. To handle this have 'zfs.sh -u' which is used by all of the test scripts umount all zfs filesystem before attempting to unload the module stack.
This commit is contained in:
parent
07bd86718b
commit
b9f6a49025
@ -65,6 +65,7 @@ if [ $(id -u) != 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${UNLOAD} ]; then
|
if [ ${UNLOAD} ]; then
|
||||||
|
umount -t zfs -a
|
||||||
unload_modules
|
unload_modules
|
||||||
else
|
else
|
||||||
check_modules || die "${ERROR}"
|
check_modules || die "${ERROR}"
|
||||||
|
Loading…
Reference in New Issue
Block a user