Samba 3.0.32 - internal change notify on share directory

Dina Fine dina at exanet.com
Tue Nov 18 12:48:02 GMT 2008


Hi

It seems that when using change notify (internal only with no inotify
mechanism) the notification doesn't work on share directory path for
create and rename operations (and works only for delete).

It appears that when working on share directory, the add change notify
request receives the following path "/share_path/." and cuts off the
"\." at the path end. The notification request is saved with
"/share_path" path.

But on notify_trigger (fro example when creating file_name),
notify_fname creates a full path: "/share_path/./file_name" and doesn't
cut off the prefix "./" of the relative file path. Then notify_trigger
searches for the relevant subscription "/share_path/." in the tdb file
and of course fails.

The attached patch solves the problem.
 <<change_notify_on_volume_root.patch>> 
Thanks,
Dina Fine
Software Engineer - Core Technologies
Exanet Ltd.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: change_notify_on_volume_root.patch
Type: application/octet-stream
Size: 685 bytes
Desc: change_notify_on_volume_root.patch
Url : http://lists.samba.org/archive/samba-technical/attachments/20081118/67e15647/change_notify_on_volume_root.obj


More information about the samba-technical mailing list