fuser
fuser copied to clipboard
skip umount if session has been destroyed
when the mountpoint is unmounted in other ways (like $ umount <mountpoint>
), fuser will got this message
WARN fuser::mnt::fuse2(fuse2.rs:66) - umount failed with Os { code: 22, kind: InvalidInput, message: "Invalid argument" }
the reason is that the Mount::drop call umount directly regardless the mountpoint is unmounted.
this pr introduced a shared var to ignore umount when Session is destroyed.