summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-02 09:19:04 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:09 -0500
commit564e6841d60ec5ae573a707f73fcc0ab80a41394 (patch)
tree3692f3970a11227074ca6614cf89d1137e87a090 /examples/VFS
parent4b15f31f106f1dd69fdda721b5c3b787f5245a80 (diff)
downloadsamba-564e6841d60ec5ae573a707f73fcc0ab80a41394.tar.gz
samba-564e6841d60ec5ae573a707f73fcc0ab80a41394.tar.bz2
samba-564e6841d60ec5ae573a707f73fcc0ab80a41394.zip
r24123: add file_id_create() to some vfs modules
metze (This used to be commit 0bc5a9cd0136f8512e963a30b6e7b009667fb0bf)
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/skel_opaque.c12
-rw-r--r--examples/VFS/skel_transparent.c7
2 files changed, 17 insertions, 2 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c
index 6a5b34f3af..173644f3d1 100644
--- a/examples/VFS/skel_opaque.c
+++ b/examples/VFS/skel_opaque.c
@@ -280,6 +280,15 @@ static int skel_chflags(vfs_handle_struct *handle, const char *path, uint flags
return -1;
}
+static struct file_id skel_file_id_create(vfs_handle_struct *handle,
+ SMB_DEV_T dev, SMB_INO_T inode)
+{
+ struct file_id id_zero;
+ ZERO_STRUCT(id_zero);
+ errno = ENOSYS;
+ return id_zero;
+}
+
static size_t skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
int fd, uint32 security_info, SEC_DESC **ppdesc)
{
@@ -618,8 +627,7 @@ static vfs_op_tuple skel_op_tuples[] = {
{SMB_VFS_OP(skel_realpath), SMB_VFS_OP_REALPATH, SMB_VFS_LAYER_OPAQUE},
{SMB_VFS_OP(skel_notify_watch), SMB_VFS_OP_NOTIFY_WATCH, SMB_VFS_LAYER_OPAQUE},
{SMB_VFS_OP(skel_chflags), SMB_VFS_OP_CHFLAGS, SMB_VFS_LAYER_OPAQUE},
-
-
+ {SMB_VFS_OP(skel_file_id_create), SMB_VFS_OP_FILE_ID_CREATE, SMB_VFS_LAYER_OPAQUE},
/* NT File ACL operations */
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index 0a74cfc95d..411dc31c6a 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -273,6 +273,12 @@ static int skel_chflags(vfs_handle_struct *handle, const char *path, uint flags
return SMB_VFS_NEXT_CHFLAGS(handle, path, flags);
}
+static struct file_id skel_file_id_create(vfs_handle_struct *handle,
+ SMB_DEV_T dev, SMB_INO_T inode)
+{
+ return SMB_VFS_NEXT_FILE_ID_CREATE(handle, dev, inode);
+}
+
static size_t skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
int fd, uint32 security_info, SEC_DESC **ppdesc)
{
@@ -579,6 +585,7 @@ static vfs_op_tuple skel_op_tuples[] = {
{SMB_VFS_OP(skel_realpath), SMB_VFS_OP_REALPATH, SMB_VFS_LAYER_TRANSPARENT},
{SMB_VFS_OP(skel_notify_watch), SMB_VFS_OP_NOTIFY_WATCH, SMB_VFS_LAYER_TRANSPARENT},
{SMB_VFS_OP(skel_chflags), SMB_VFS_OP_CHFLAGS, SMB_VFS_LAYER_TRANSPARENT},
+ {SMB_VFS_OP(skel_file_id_create), SMB_VFS_OP_FILE_ID_CREATE, SMB_VFS_LAYER_TRANSPARENT},
/* NT File ACL operations */