examples/VFS/skel_opaque: Rename kernel_flock to filesystem_sharemode
authorChristof Schmitt <cs@samba.org>
Mon, 20 Sep 2021 21:57:07 +0000 (14:57 -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_opaque.c

index 8ea05f46d94e6407233ab2592ff174d1bb1866b5..f393332c68142ae6520e8a95e56651781a81b8ca 100644 (file)
@@ -428,9 +428,10 @@ static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op,
        return false;
 }
 
-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)
 {
        errno = ENOSYS;
        return -1;
@@ -1009,7 +1010,7 @@ static struct vfs_fn_pointers skel_opaque_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,