Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to cleanly unmount? How to detect external unmount? #72

Open
alvaro-cuesta opened this issue Dec 5, 2023 · 2 comments
Open

How to cleanly unmount? How to detect external unmount? #72

alvaro-cuesta opened this issue Dec 5, 2023 · 2 comments

Comments

@alvaro-cuesta
Copy link

alvaro-cuesta commented Dec 5, 2023

  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 add unmount support #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.

@alvaro-cuesta alvaro-cuesta changed the title How to cleanly unmount? How to cleanly unmount? How to detect external unmount? Dec 5, 2023
@ho-229
Copy link
Contributor

ho-229 commented Mar 7, 2024

how about #78

@ho-229
Copy link
Contributor

ho-229 commented Mar 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants