How to cleanly unmount? How to detect external unmount?
alvaro-cuesta opened this issue · comments
Is there any way to unmount cleanly? Currently I have toSee #78fusermount -u
every time I exit. I tried droppingMountHandle
on custom CTRL-C handler but it doesn't seem to do the trick.- Is there any way to detect when
fusermount -u
has been called on my mount point? TheMountHandle
seems to stay alive while I'd expect the.await
to resolve when unmounted.
I don't have a deep mental model of FUSE so please bear with me if my questions don't make sense.
I note only BlockFuseConnection
checks for filesystem umount, you can use Session::mount
instead of Session::mount_with_unprivileged
to detect filesystem umount