r20442: Slight rewrite of the change notify infrastructure. This now survives the
authorVolker Lendecke <vlendec@samba.org>
Sun, 31 Dec 2006 17:52:24 +0000 (17:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:16:50 +0000 (12:16 -0500)
commit200bd10b32107b4ce8fc72cc2abbf5a247708ba6
tree5c3d7cfef6259d693633218936724acb1b9824ac
parent421ffdbb2439fbf44cb61e0d1549071b85a3507c
r20442: Slight rewrite of the change notify infrastructure. This now survives the
first of the raw-notify subtests, the one-level test_notify_dir without any
flags around yet.

The tricky part was getting the data structures right, I hope the next tests
don't let that fall over.

fsp->notify is now by default NULL, meaning that nobody has issued a
changenotify call. This means nobody is interested in changes for this
directory.

If that has happened, notify_change_buf collects the changes if no current
request is outstanding, and it collects the requests if no change has happened
since the last request.

Happy New Year, somewhere on this planet it's already 2007 :-)

Volker

P.S: Jeremy, there's a question for you in smbd/files.c line 367.
(This used to be commit ce0ad24988075465addcac0b9afc872e909135af)
source3/include/smb.h
source3/smbd/close.c
source3/smbd/files.c
source3/smbd/notify.c
source3/smbd/nttrans.c
source3/smbd/reply.c