summaryrefslogtreecommitdiffstats
path: root/source/smbd/close.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-12-31 17:52:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:50 -0500
commitce0ad24988075465addcac0b9afc872e909135af (patch)
treedfd0f60b81b1029a0401a5ced90edbdc04d81fb7 /source/smbd/close.c
parentfe122b07fa1712c15067ed385d4408206e9beef4 (diff)
downloadsamba-ce0ad24988075465addcac0b9afc872e909135af.tar.gz
samba-ce0ad24988075465addcac0b9afc872e909135af.tar.xz
samba-ce0ad24988075465addcac0b9afc872e909135af.zip
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.
Diffstat (limited to 'source/smbd/close.c')
-rw-r--r--source/smbd/close.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/close.c b/source/smbd/close.c
index a3ddcae11d0..282c4acb244 100644
--- a/source/smbd/close.c
+++ b/source/smbd/close.c
@@ -416,7 +416,8 @@ static int close_directory(files_struct *fsp, enum file_close_type close_type)
process_pending_change_notify_queue((time_t)0);
} else {
TALLOC_FREE(lck);
- remove_pending_change_notify_requests_by_fid(fsp, NT_STATUS_CANCELLED);
+ remove_pending_change_notify_requests_by_fid(
+ fsp, NT_STATUS_OK);
}
/*