summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-11-21 17:23:18 +0100
committerJeremy Allison <jra@samba.org>2015-07-07 23:51:24 +0200
commitce26c642724fb95d610c19d7f03e8c1e065219a2 (patch)
treeceec4f44e1da91a6bc80fbe73e45cd01aae82264 /source3/smbd
parentb434eb5077948fb8db2f1cc90556edce34d26af0 (diff)
downloadsamba-ce26c642724fb95d610c19d7f03e8c1e065219a2.tar.gz
smbd: Kernel change notify is done by notifyd
smbd itself does not need to call VFS_NOTIFY_WATCH anymore Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/notify.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index b3079d2c078..e776749a318 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -236,15 +236,6 @@ static void notify_callback(void *private_data, struct timespec when,
notify_fsp(fsp, when, e->action, e->path);
}
-static void sys_notify_callback(struct sys_notify_context *ctx,
- void *private_data,
- struct notify_event *e)
-{
- files_struct *fsp = (files_struct *)private_data;
- DEBUG(10, ("sys_notify_callback called for %s\n", fsp_str_dbg(fsp)));
- notify_fsp(fsp, timespec_current(), e->action, e->path);
-}
-
NTSTATUS change_notify_create(struct files_struct *fsp, uint32_t filter,
bool recursive)
{
@@ -284,19 +275,6 @@ NTSTATUS change_notify_create(struct files_struct *fsp, uint32_t filter,
subdir_filter = recursive ? filter : 0;
- if (fsp->conn->sconn->sys_notify_ctx != NULL) {
- void *sys_notify_handle = NULL;
-
- status = SMB_VFS_NOTIFY_WATCH(
- fsp->conn, fsp->conn->sconn->sys_notify_ctx,
- fullpath, &filter, &subdir_filter,
- sys_notify_callback, fsp, &sys_notify_handle);
-
- if (NT_STATUS_IS_OK(status)) {
- talloc_steal(fsp->notify, sys_notify_handle);
- }
- }
-
if ((filter != 0) || (subdir_filter != 0)) {
status = notify_add(fsp->conn->sconn->notify_ctx,
fullpath, filter, subdir_filter,