Skip to content
New issue

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

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

Already on GitHub? # to your account

how to implement setlk and getlk rightly #144

Open
Sherlock-Holo opened this issue Feb 19, 2020 · 2 comments
Open

how to implement setlk and getlk rightly #144

Sherlock-Holo opened this issue Feb 19, 2020 · 2 comments

Comments

@Sherlock-Holo
Copy link

I want to handle the file lock in fuse not kernel, so I implement setlk and getlk method, but I don't see any log about them, even I write a panic!("boom"), the fuse doesn't panic.

Am I doing wrong? If I am wrong, how do I implement them rightly

@Sherlock-Holo
Copy link
Author

also, I try the branch modernize, same problem. If I modify the lib codes and use higher abi, cargo check report some errors

@Sherlock-Holo
Copy link
Author

I modify the fuse-rs codes, when init fuse, change the

const INIT_FLAGS: u32 = FUSE_ASYNC_READ ;

to

const INIT_FLAGS: u32 = FUSE_ASYNC_READ | FUSE_POSIX_LOCKS;

to fix it

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

No branches or pull requests

1 participant