summaryrefslogtreecommitdiff
path: root/examples/VFS
diff options
context:
space:
mode:
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 */