diff options
author | Adam D. Moss <[email protected]> | 2020-10-13 16:51:54 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-13 16:51:54 -0700 |
commit | 92286311f824dc0538e1eb2c8561ad3eb349c90f (patch) | |
tree | 4f08b5d15b28f6cbb0968afefe8b844c6f92782f /scripts/zfs.sh | |
parent | 701f656b970485577899db84f024cd85121149b2 (diff) |
Add zfs.sh module unload error message
If modules fail to unload because of outstanding users, don't
consider this a success.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Adam Moss <[email protected]>
Closes #11042
Diffstat (limited to 'scripts/zfs.sh')
-rwxr-xr-x | scripts/zfs.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/zfs.sh b/scripts/zfs.sh index e676fc295..c131429c9 100755 --- a/scripts/zfs.sh +++ b/scripts/zfs.sh @@ -198,6 +198,9 @@ unload_modules_linux() { if [ "$USE_COUNT" = "0" ] ; then unload_module_linux "$KMOD" || return 1 + else + echo "Module ${NAME} is still in use!" + return 1 fi done |