[Samba] Samba | Windows FindNextChangeNotification API call

Gerald Carter jerry at samba.org
Mon Aug 26 08:03:01 GMT 2002


On Fri, 23 Aug 2002, Taresa Lee wrote:

> We currently develop a Windows based product that reads ASCII files and
> saves the data into different database types.  Currently, we have a
> customer running Samba on his UNIX machine so our product can read the
> files off this system.  After running tests at his site, we have found
> that the Windows FindNextChangeNotification API is not being triggered
> on the Samba directory after a period of time passed.  Do you support
> this API call?  Have you seen this issue in the past?  Do you have any
> suggestions as to why this is occurring?  The customer currently has
> version 2.0.6 of Samba loaded.

Yes we do.  However, a Win32 api call doesn't map cleanly onto the 
actual commands that go over the wire.  One difference in our 
implementation is that we only implement the change notify one directory 
level deep.  Windows NT servers will triger a change notify event on any 
subdirectory IIRC.  

Jeremy Allison write the original change notify code in Samba so I've 
copied him for perhaps a better explanation.

Note that 2.0.6 is fairly old at this point (over 2 years). The latest 
release (2.2.5) has changed quite a bit since then in implementing correct 
semantics.





cheers, jerry
 ---------------------------------------------------------------------
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--





More information about the samba mailing list