diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-01 13:36:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:38 -0500 |
commit | 240a3fd644bbc94e5872f699c9b90649b52b98a1 (patch) | |
tree | 159f64ebe6f471b11f2c54fca7f8f0166d72bd4f /source3/modules | |
parent | 8b7233f19b4e294bf4174439b3acc427552dc4ee (diff) | |
download | samba-240a3fd644bbc94e5872f699c9b90649b52b98a1.tar.gz samba-240a3fd644bbc94e5872f699c9b90649b52b98a1.tar.bz2 samba-240a3fd644bbc94e5872f699c9b90649b52b98a1.zip |
r21108: Send sys_notify_watch through the VFS, FAM is next
(This used to be commit 603a96761391f36ae9a1c8777d3333ab5c02eb34)
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_default.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index c68ccbf714..0efffe154d 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -833,6 +833,21 @@ static char *vfswrap_realpath(vfs_handle_struct *handle, const char *path, char return result; } +static NTSTATUS vfswrap_notify_watch(vfs_handle_struct *vfs_handle, + struct sys_notify_context *ctx, + struct notify_entry *e, + void (*callback)(struct sys_notify_context *ctx, + void *private_data, + struct notify_event *ev), + void *private_data, void *handle) +{ +#ifdef HAVE_INOTIFY + return inotify_watch(ctx, e, callback, private_data, handle); +#else + return NT_STATUS_OK; +#endif +} + static size_t vfswrap_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, int fd, uint32 security_info, SEC_DESC **ppdesc) { size_t result; @@ -1212,6 +1227,8 @@ static vfs_op_tuple vfs_default_ops[] = { SMB_VFS_LAYER_OPAQUE}, {SMB_VFS_OP(vfswrap_realpath), SMB_VFS_OP_REALPATH, SMB_VFS_LAYER_OPAQUE}, + {SMB_VFS_OP(vfswrap_notify_watch), SMB_VFS_OP_NOTIFY_WATCH, + SMB_VFS_LAYER_OPAQUE}, /* NT ACL operations. */ |