]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_streams_xattr: Rename kernel_flock to filesystem_sharemode
authorChristof Schmitt <cs@samba.org>
Mon, 20 Sep 2021 22:25:21 +0000 (15:25 -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>
source3/modules/vfs_streams_xattr.c

index 74018c3084873b01533e8753ef9b9e44a91941f8..76b23c7224f7854b2cd953126b7a5925fe509491 100644 (file)
@@ -1489,10 +1489,10 @@ static bool streams_xattr_getlock(vfs_handle_struct *handle,
        return false;
 }
 
-static int streams_xattr_kernel_flock(vfs_handle_struct *handle,
-                                     files_struct *fsp,
-                                     uint32_t share_access,
-                                     uint32_t access_mask)
+static int streams_xattr_filesystem_sharemode(vfs_handle_struct *handle,
+                                             files_struct *fsp,
+                                             uint32_t share_access,
+                                             uint32_t access_mask)
 {
        struct stream_io *sio =
                (struct stream_io *)VFS_FETCH_FSP_EXTENSION(handle, fsp);
@@ -1560,7 +1560,7 @@ static struct vfs_fn_pointers vfs_streams_xattr_fns = {
 
        .lock_fn = streams_xattr_lock,
        .getlock_fn = streams_xattr_getlock,
-       .filesystem_sharemode_fn = streams_xattr_kernel_flock,
+       .filesystem_sharemode_fn = streams_xattr_filesystem_sharemode,
        .linux_setlease_fn = streams_xattr_linux_setlease,
        .strict_lock_check_fn = streams_xattr_strict_lock_check,