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 <behlendorf1@llnl.gov>
Signed-off-by: Adam Moss <c@yotes.com>
Closes #11042
This commit is contained in:
Adam D. Moss 2020-10-13 16:51:54 -07:00 committed by GitHub
parent 701f656b97
commit 92286311f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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