Sherlock-Holo / fuse3

an async version fuse library for rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to cleanly unmount? How to detect external unmount?

alvaro-cuesta opened this issue · comments

  1. Is there any way to unmount cleanly? Currently I have to fusermount -u every time I exit. I tried dropping MountHandle on custom CTRL-C handler but it doesn't seem to do the trick. See #78
  2. Is there any way to detect when fusermount -u has been called on my mount point? The MountHandle 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.

how about #78

I note only BlockFuseConnection checks for filesystem umount, you can use Session::mount instead of Session::mount_with_unprivileged to detect filesystem umount