mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 02:49:32 +03:00
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:
parent
701f656b97
commit
92286311f8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user