Skip to contentSkip to conversation

Watching for changes to a CIFS directory

DISCUSSION Ray Van Dolson 2 participants 3 messages Oct 14, 2011 – Oct 15, 2011 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

I'd like to watch a CIFS mounted directory for changes (files being created in specific).

Does the CIFS client have working support for either INOTIFY or DNOTIFY? From perusing the mailing list, it seems that INOTIFY support is not present, but there was discussion on implementing DNOTIFY support some time back[1]. I'm not clear if that was ever partially or fully implemented.

My current test scripts are using DNOTIFY and are not working with the CIFS client included in RHEL5, Fedora 13 or Fedora 14.

Thanks,
Ray

[1] http://lists.samba.org/archive/linux-cifs-client/2009-January/003946.html

#2 lore raw
In reply to a message not in the archive

inotify code would not be hard to finish - at one time before the vfs api changed
(to inotify from dnotify) cifs had experimental dnotify code, but it does have
the worker functions for this. I would be very willing to look at patches
for this ...

Quoted 21 lines · Ray Van Dolson

I'd like to watch a CIFS mounted directory for changes (files being created in specific).

Does the CIFS client have working support for either INOTIFY or DNOTIFY?  From perusing the mailing list, it seems that INOTIFY support is not present, but there was discussion on implementing DNOTIFY support some time back[1].  I'm not clear if that was ever partially or fully implemented.

My current test scripts are using DNOTIFY and are not working with the CIFS client included in RHEL5, Fedora 13 or Fedora 14.

Thanks,
Ray

[1] http://lists.samba.org/archive/linux-cifs-client/2009-January/003946.html
--
To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to [email protected] More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 3 lines
Thanks,

Steve
#4 lore raw
In reply to a message not in the archive
Quoted 4 lines · Steve French

inotify code would not be hard to finish - at one time before the vfs api changed (to inotify from dnotify) cifs had experimental dnotify
code, but it does have the worker functions for this. I would be
very willing to look at patches for this ...

Thanks Steve. If only I had the skills to create the patches!

Appreciate the info.

Ray

Quoted 18 lines · Ray Van Dolson
Quoted 16 lines

I'd like to watch a CIFS mounted directory for changes (files being created in specific).

Does the CIFS client have working support for either INOTIFY or DNOTIFY?  From perusing the mailing list, it seems that INOTIFY support is not present, but there was discussion on implementing DNOTIFY support some time back[1].  I'm not clear if that was ever partially or fully implemented.

My current test scripts are using DNOTIFY and are not working with the CIFS client included in RHEL5, Fedora 13 or Fedora 14.

Thanks,
Ray

[1] http://lists.samba.org/archive/linux-cifs-client/2009-January/003946.html