zargony / fuse-rs

Rust library for filesystems in userspace (FUSE)
MIT License
1.07k stars 130 forks source link

destroy() not being called. #151

Open dan-da opened 4 years ago

dan-da commented 4 years ago

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? https://github.com/libfuse/libfuse/issues/228

Is this known to be working?

I am using fuse = "0.3.1".

unmounted with: fusermount -u <path>

dan-da commented 3 years ago

any comment?

Minoru commented 3 years ago

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.