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

destroy() not being called. #151

Open
dan-da opened this issue Sep 18, 2020 · 2 comments
Open

destroy() not being called. #151

dan-da opened this issue Sep 18, 2020 · 2 comments

Comments

@dan-da
Copy link

dan-da commented Sep 18, 2020

I just implemented the destroy() fn, but in looking at the log output it is not called.

[2020-09-18T00:30:31.907799925Z DEBUG fuse::request] GETATTR(20) ino 0xad5d000000000002
[2020-09-18T00:30:31.907878978Z DEBUG safe_fs] getattr -- ino: 12492140941395623938
[2020-09-18T00:30:31.907992787Z DEBUG fuse::request] FLUSH(21) ino 0xad5d000000000002, fh 0, lock owner 12400250618348162377
[2020-09-18T00:30:31.908112358Z DEBUG fuse::request] RELEASE(22) ino 0xad5d000000000002, fh 0, flags 0x8000, release flags 0x0, lock owner 0
[2020-09-18T00:30:31.908210271Z DEBUG safe_fs] release -- ino=12492140941395623938, fh=0, flush=false
[2020-09-18T00:30:33.654077289Z DEBUG fuse::request] GETATTR(23) ino 0x0000000000000001
[2020-09-18T00:30:33.654250567Z DEBUG safe_fs] getattr -- ino: 1
[2020-09-18T00:30:36.750002585Z INFO  fuse::session] Unmounted /tmp/safe

I found this, which might possibly be relevant?
libfuse/libfuse#228

Is this known to be working?

I am using fuse = "0.3.1".

unmounted with:
fusermount -u <path>

@dan-da
Copy link
Author

dan-da commented Feb 11, 2021

any comment?

@Minoru
Copy link

Minoru commented Feb 11, 2021

I've no idea about the question, but maybe try https://github.com/cberner/fuser, which is a bit more active fork of this repo.

ariel-miculas added a commit to ariel-miculas/puzzlefs that referenced this issue Nov 4, 2022
Inspired by cberner/fuser#179 (comment)
The program exits when ctrl-c is pressed or when the filesystem is
unmounted (e.g. fusermount -u <mountpoint>)

Note that this issue zargony/fuse-rs#151
prevents using the destroy callback for notifying us that the filesystem
was unmounted, so we use the drop callback as a workaround.

Signed-off-by: Ariel Miculas <[email protected]>
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