examples/VFS/skel_transparent: Rename kernel_flock to filesystem_sharemode
authorChristof Schmitt <cs@samba.org>
Mon, 20 Sep 2021 21:56:08 +0000 (14:56 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 21 Sep 2021 18:47:38 +0000 (18:47 +0000)
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
examples/VFS/skel_transparent.c

index cc734f7fc5958ef3c4ceef87a73a40bc464e5ac8..d6bf3171b952ba31556a1d17f9fc6219cbbba433 100644 (file)
@@ -548,9 +548,10 @@ static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op,
        return SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type);
 }
 
-static int skel_kernel_flock(struct vfs_handle_struct *handle,
-                            struct files_struct *fsp, uint32_t share_mode,
-                            uint32_t access_mask)
+static int skel_filesystem_sharemode(struct vfs_handle_struct *handle,
+                                    struct files_struct *fsp,
+                                    uint32_t share_mode,
+                                    uint32_t access_mask)
 {
        return SMB_VFS_NEXT_FILESYSTEM_SHAREMODE(handle,
                                                 fsp,
@@ -1318,7 +1319,7 @@ static struct vfs_fn_pointers skel_transparent_fns = {
        .ftruncate_fn = skel_ftruncate,
        .fallocate_fn = skel_fallocate,
        .lock_fn = skel_lock,
-       .filesystem_sharemode_fn = skel_kernel_flock,
+       .filesystem_sharemode_fn = skel_filesystem_sharemode,
        .fcntl_fn = skel_fcntl,
        .linux_setlease_fn = skel_linux_setlease,
        .getlock_fn = skel_getlock,