From 6e5ea70e9e0aafa39dbf8cd53238d0045f38f468 Mon Sep 17 00:00:00 2001 From: James Peach Date: Thu, 8 Mar 2007 01:40:49 +0000 Subject: r21757: Add SMB_VFS_CHFLAGS operation. (This used to be commit 16cb22d6b83c502dec1b297c544c05d89714b3d6) --- source3/include/vfs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3/include/vfs.h') diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 7bcd6cdf2c..5e7048bb54 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -69,7 +69,8 @@ Also included linux setlease call - jmcd */ /* Changed to version 20, use ntimes call instead of utime (greater * timestamp resolition. JRA. */ -#define SMB_VFS_INTERFACE_VERSION 20 +/* Changed to version21 to add chflags operation -- jpeach */ +#define SMB_VFS_INTERFACE_VERSION 21 /* to bug old modules which are trying to compile with the old functions */ @@ -158,6 +159,7 @@ typedef enum _vfs_op_type { SMB_VFS_OP_MKNOD, SMB_VFS_OP_REALPATH, SMB_VFS_OP_NOTIFY_WATCH, + SMB_VFS_OP_CHFLAGS, /* NT ACL operations. */ @@ -289,6 +291,7 @@ struct vfs_ops { void *private_data, struct notify_event *ev), void *private_data, void *handle_p); + int (*chflags)(struct vfs_handle_struct *handle, const char *path, uint flags); /* NT ACL operations. */ @@ -406,6 +409,7 @@ struct vfs_ops { struct vfs_handle_struct *mknod; struct vfs_handle_struct *realpath; struct vfs_handle_struct *notify_watch; + struct vfs_handle_struct *chflags; /* NT ACL operations. */ -- cgit