Add -p switch to "zpool get"
[zfs.git] / scripts / zfs.sh
index 6060fba..f44053e 100755 (executable)
@@ -65,8 +65,11 @@ if [ $(id -u) != 0 ]; then
 fi
 
 if [ ${UNLOAD} ]; then
+       umount -t zfs -a
+       stack_check
        unload_modules
 else
+       stack_clear
        check_modules || die "${ERROR}"
        load_modules "$@"
        wait_udev /dev/zfs 30