diff options
author | Volker Lendecke <vl@samba.org> | 2012-03-26 12:46:11 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-03-26 17:45:43 +0200 |
commit | fa6f61e83565f49fb4e75248cffaa1ef31567d20 (patch) | |
tree | 0caed7c2a103a24db7e6d2e0578071beefbb69f2 /source3/smbd/vfs.c | |
parent | c3a506b64e248152212ab647048a47bd63039452 (diff) | |
download | samba-fa6f61e83565f49fb4e75248cffaa1ef31567d20.tar.gz samba-fa6f61e83565f49fb4e75248cffaa1ef31567d20.tar.xz samba-fa6f61e83565f49fb4e75248cffaa1ef31567d20.zip |
s3: Pass filters explicitly through vfs notify watch
This removes a dependency on "struct notify_entry" and makes the nature of the
API more explicit. We depend upon the VFS module to mask out elements from
e->filter and e->subdir_filter that it took over to handle.
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Mar 26 17:45:44 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/smbd/vfs.c')
-rw-r--r-- | source3/smbd/vfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c index 6b7b8691aae..4c5e52be1ba 100644 --- a/source3/smbd/vfs.c +++ b/source3/smbd/vfs.c @@ -1833,15 +1833,17 @@ char *smb_vfs_call_realpath(struct vfs_handle_struct *handle, const char *path) NTSTATUS smb_vfs_call_notify_watch(struct vfs_handle_struct *handle, struct sys_notify_context *ctx, - struct notify_entry *e, const char *path, + uint32_t *filter, + uint32_t *subdir_filter, void (*callback)(struct sys_notify_context *ctx, void *private_data, struct notify_event *ev), void *private_data, void *handle_p) { VFS_FIND(notify_watch); - return handle->fns->notify_watch_fn(handle, ctx, e, path, callback, + return handle->fns->notify_watch_fn(handle, ctx, path, + filter, subdir_filter, callback, private_data, handle_p); } |