summaryrefslogtreecommitdiff
path: root/source3/include/vfs.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-02 08:53:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:08 -0500
commit4b15f31f106f1dd69fdda721b5c3b787f5245a80 (patch)
tree34e14d007c0dc257723fff1379cb0968bfb6f410 /source3/include/vfs.h
parenta0a9a301d258ffdd6e1f35a9d4d32c555237556c (diff)
downloadsamba-4b15f31f106f1dd69fdda721b5c3b787f5245a80.tar.gz
samba-4b15f31f106f1dd69fdda721b5c3b787f5245a80.tar.bz2
samba-4b15f31f106f1dd69fdda721b5c3b787f5245a80.zip
r24120: add a file_id_create() hook into the VFS layer
it's needed for some cluster filesystems to overload this function. metze (This used to be commit cdaa24e8047399002e4b287a31a8340a665e580f)
Diffstat (limited to 'source3/include/vfs.h')
-rw-r--r--source3/include/vfs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h
index b136750e7c..768c9fbcab 100644
--- a/source3/include/vfs.h
+++ b/source3/include/vfs.h
@@ -71,6 +71,7 @@
/* Changed to version21 to add chflags operation -- jpeach */
/* Changed to version22 to add lchown operation -- jra */
/* Leave at 22 - not yet released. But change set_nt_acl to return an NTSTATUS. jra. */
+/* Leave at 22 - not yet released. Add file_id_create operation. --metze */
#define SMB_VFS_INTERFACE_VERSION 22
@@ -162,6 +163,7 @@ typedef enum _vfs_op_type {
SMB_VFS_OP_REALPATH,
SMB_VFS_OP_NOTIFY_WATCH,
SMB_VFS_OP_CHFLAGS,
+ SMB_VFS_OP_FILE_ID_CREATE,
/* NT ACL operations. */
@@ -295,7 +297,8 @@ struct vfs_ops {
struct notify_event *ev),
void *private_data, void *handle_p);
int (*chflags)(struct vfs_handle_struct *handle, const char *path, uint flags);
-
+ struct file_id (*file_id_create)(struct vfs_handle_struct *handle, SMB_DEV_T dev, SMB_INO_T inode);
+
/* NT ACL operations. */
size_t (*fget_nt_acl)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, uint32 security_info, struct security_descriptor **ppdesc);
@@ -414,6 +417,7 @@ struct vfs_ops {
struct vfs_handle_struct *realpath;
struct vfs_handle_struct *notify_watch;
struct vfs_handle_struct *chflags;
+ struct vfs_handle_struct *file_id_create;
/* NT ACL operations. */