-
Notifications
You must be signed in to change notification settings - Fork 18
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
Reintroduce lookup/forget calls as notifications #20
Comments
Sounds reasonable. Only question I have is whether |
Checking in In fact, I'm not sure there isn't some possible utility in notifying user not just on first |
After looking more closely, it seems implementing lookup/forget notifications with actually useful semantics isn't exactly straightforward. I'll show you my take on it, if I manage to, otherwise consider me never having posted this feature request. |
Path-based notifications aren't very useful, after all. User will have to track renames, and it's not even obvious what to do with paths on unlinks and shadowing renames. And exposing inodes isn't straightforward because I guess I'll just have to use rust-fuse directly. You may close this issue, unless you intend to implement something like what's described in #21. |
Just as notifications to the filesystem implementation; no return value. Fixes #20
It would be nice to have
lookup(&Path)/forget(&Path)
methods getting called when an inode is looked up for the first time/is removed after it's forgotten for the last time. The methods are not intended to do or return anything that Fuse would rely on, like actual lookup. The default implementations would be empty and hence optimized out.It is useful to keep track of what kernel actually needs at the moment. For a FS that I'm writing I have to associate some resources with some files and directories, and it would lend itself well to allocate/free these resources on actual demand.
The text was updated successfully, but these errors were encountered: