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

index a2c43e2de5a98d9b0a2dccebd03d5b5e730fb1e6..37e9721c72b842595b82203290aeffe49620d432 100644 (file)
@@ -3015,8 +3015,10 @@ static bool vfswrap_lock(vfs_handle_struct *handle, files_struct *fsp, int op, o
        return result;
 }
 
-static int vfswrap_kernel_flock(vfs_handle_struct *handle, files_struct *fsp,
-                               uint32_t share_access, uint32_t access_mask)
+static int vfswrap_filesystem_sharemode(vfs_handle_struct *handle,
+                                       files_struct *fsp,
+                                       uint32_t share_access,
+                                       uint32_t access_mask)
 {
        errno = ENOTSUP;
        return -1;
@@ -3970,7 +3972,7 @@ static struct vfs_fn_pointers vfs_default_fns = {
        .ftruncate_fn = vfswrap_ftruncate,
        .fallocate_fn = vfswrap_fallocate,
        .lock_fn = vfswrap_lock,
-       .filesystem_sharemode_fn = vfswrap_kernel_flock,
+       .filesystem_sharemode_fn = vfswrap_filesystem_sharemode,
        .fcntl_fn = vfswrap_fcntl,
        .linux_setlease_fn = vfswrap_linux_setlease,
        .getlock_fn = vfswrap_getlock,