From 92286311f824dc0538e1eb2c8561ad3eb349c90f Mon Sep 17 00:00:00 2001 From: "Adam D. Moss" Date: Tue, 13 Oct 2020 16:51:54 -0700 Subject: [PATCH] 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 Signed-off-by: Adam Moss Closes #11042 --- scripts/zfs.sh | 3 +++ 1 file changed, 3 insertions(+) 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