Phil Endecott
2007-11-23 20:49:52 UTC
Dear NFS experts,
I am trying to understand how Linux NFS does/could interact with
inotify. Please let me know how close this is to the truth:
- NFSv3 or older can't easily provide any sort of notification because
of statelessness.
- NFSv4 has state, so the protocol could perhaps support some kind of notification.
- The current Linux NFSv4 implementation doesn't support any notification.
- The inotify kernel API lacks some features needed to implement NFS
notification. (I'm basing this on Asser Fem??'s observation that he
couldn't integrate CIFS with inotify, e.g. http://lists.samba.org/archive/linux-cifs-client/2005-August/000937.html)
- Asking inotify to monitor an NFS file results in an "OK" response,
and no events, rather than an error. (Returing an error would make it
easier for an application to switch to a fallback, e.g. polling; what's
the best way to determine whether a particular file is on NFS or not?)
Is that accurate?
Many thanks,
Phil.
I am trying to understand how Linux NFS does/could interact with
inotify. Please let me know how close this is to the truth:
- NFSv3 or older can't easily provide any sort of notification because
of statelessness.
- NFSv4 has state, so the protocol could perhaps support some kind of notification.
- The current Linux NFSv4 implementation doesn't support any notification.
- The inotify kernel API lacks some features needed to implement NFS
notification. (I'm basing this on Asser Fem??'s observation that he
couldn't integrate CIFS with inotify, e.g. http://lists.samba.org/archive/linux-cifs-client/2005-August/000937.html)
- Asking inotify to monitor an NFS file results in an "OK" response,
and no events, rather than an error. (Returing an error would make it
easier for an application to switch to a fallback, e.g. polling; what's
the best way to determine whether a particular file is on NFS or not?)
Is that accurate?
Many thanks,
Phil.