GNOME Bugzilla – Bug 627107
Support for remote file monitoring over CIFS
Last modified: 2018-09-21 17:05:59 UTC
The CIFS protocol supports remote file change notification, using the NT_TRANSACT_NOTIFY_CHANGE command. It would be nice to add support for this in the gvfs backend.
We use libsmbclient for accessing CIFS shares which basically wraps the protocol to POSIX-like calls. I couldn't find any function related to monitoring in any kind, unfortunately. You may want to talk to Samba folks first, perhaps this feature comes in Samba 4 series.
There's no FindNotify support in libsmbclient: https://bugzilla.samba.org/show_bug.cgi?id=7393
The mentioned bug is solved and you can see smbc_notify in libsmbclient.h: https://github.com/samba-team/samba/blob/master/source3/include/libsmbclient.h#L1647 However, there is still a problem that it is not threadsafe: https://bugzilla.samba.org/show_bug.cgi?id=11413 :-(
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gvfs/issues/156.