diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-13 20:55:17 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2007-02-13 20:55:17 +0000 |
commit | 61bbf21f075441982f18160da83c6c1c5218b791 (patch) | |
tree | 181d16edf98960a557863d4660f28527c7c7622f /source/include/vfs.h | |
parent | 9c362d093e8f7239acbde40f5ab580824bd2bf76 (diff) | |
download | samba-61bbf21f075441982f18160da83c6c1c5218b791.tar.gz samba-61bbf21f075441982f18160da83c6c1c5218b791.tar.xz samba-61bbf21f075441982f18160da83c6c1c5218b791.zip |
r21322: No feedback means consent :-)
It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather
sooner than later.
Add the notify support that already exists in 3_0 to 3_0_25. If you want to
see this patch dissected into digestable parts, look at 3_0, revisions at
about 20800 and following.
Volker
Diffstat (limited to 'source/include/vfs.h')
-rw-r--r-- | source/include/vfs.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source/include/vfs.h b/source/include/vfs.h index fe4886567ff..de92c739d59 100644 --- a/source/include/vfs.h +++ b/source/include/vfs.h @@ -65,7 +65,8 @@ /* Changed to version 17 as we removed redundant connection_struct parameters. --jpeach */ /* Changed to version 18 to add fsp parameter to the open call -- jpeach Also include kernel_flock call - jmcd */ -#define SMB_VFS_INTERFACE_VERSION 18 +/* Changed to version 19, kernel change notify has been merged */ +#define SMB_VFS_INTERFACE_VERSION 19 /* to bug old modules which are trying to compile with the old functions */ @@ -152,6 +153,7 @@ typedef enum _vfs_op_type { SMB_VFS_OP_LINK, SMB_VFS_OP_MKNOD, SMB_VFS_OP_REALPATH, + SMB_VFS_OP_NOTIFY_WATCH, /* NT ACL operations. */ @@ -275,6 +277,13 @@ struct vfs_ops { int (*link)(struct vfs_handle_struct *handle, const char *oldpath, const char *newpath); int (*mknod)(struct vfs_handle_struct *handle, const char *path, mode_t mode, SMB_DEV_T dev); char *(*realpath)(struct vfs_handle_struct *handle, const char *path, char *resolved_path); + NTSTATUS (*notify_watch)(struct vfs_handle_struct *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_p); /* NT ACL operations. */ @@ -390,6 +399,7 @@ struct vfs_ops { struct vfs_handle_struct *link; struct vfs_handle_struct *mknod; struct vfs_handle_struct *realpath; + struct vfs_handle_struct *notify_watch; /* NT ACL operations. */ |