From: Brian Behlendorf Date: Wed, 16 Feb 2011 19:10:31 +0000 (-0800) Subject: Update 'zfs.sh -u' to umount all zfs filesystems X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=b9f6a49025809d658754c758dc7e2a81ee41271b;p=zfs.git 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. --- diff --git a/scripts/zfs.sh b/scripts/zfs.sh index 6060fba..4a707fa 100755 --- a/scripts/zfs.sh +++ b/scripts/zfs.sh @@ -65,6 +65,7 @@ if [ $(id -u) != 0 ]; then fi if [ ${UNLOAD} ]; then + umount -t zfs -a unload_modules else check_modules || die "${ERROR}"