-
Notifications
You must be signed in to change notification settings - Fork 74
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
Any plan to support inotify? #76
Comments
Short answer: no, because it's currently not possible and requires considerable work. Longer answer: there are some big problems that would need to be solved. First, inotify works in the Linux VFS layer. This means that the filesystem has no knowledge that a file or directory is being watched. If some code were to watch a directory within the mount-point then the linux kernel NFS client would be unaware of this. Fixing this is certainly possible; some ideas are already being explored for FUSE in the Fsnotify project; however, in general, this problem is a long way from being solved. Second, (to the best of my knowledge) the NFS protocol currently does not provide support anything like the rich API of inotify. There's no concept of adding a watch or receiving inotify events. There are some useful concepts already within NFS 4 (e.g., callbacks) that I believe could be used to build an inotify-like protocol extension; however, there is currently no NFS extension that works out-of-the-box. The challenge is for that extension to provide platform agnostic notification that would work for different platforms (Linux, Windows, Mac, etc.) both as the client and as the server. Therefore, this NFS extension would very likely NOT be inotify, but hopefully something that provides broadly similar semantics. Finally, even if the first and second problems are solved (both of which have remained unsolved for quite a while), there would need to be work done to update the Linux NFS client implementation so that it supported the NFS inotify extension, and supporting the Linux kernel's FS-level inotify. Some other things to mention:
|
inotify with NFS
The text was updated successfully, but these errors were encountered: