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

index 0a98e8cdbf61fc1a5cb9365da2932257931e0dc9..4e1fa6a2df440881a0576dd71a01b938148cd32e 100644 (file)
@@ -1045,12 +1045,12 @@ static bool cephwrap_lock(struct vfs_handle_struct *handle, files_struct *fsp, i
        return true;
 }
 
-static int cephwrap_kernel_flock(struct vfs_handle_struct *handle,
-                                files_struct *fsp,
-                                uint32_t share_access,
-                                uint32_t access_mask)
+static int cephwrap_filesystem_sharemode(struct vfs_handle_struct *handle,
+                                        files_struct *fsp,
+                                        uint32_t share_access,
+                                        uint32_t access_mask)
 {
-       DBG_ERR("[CEPH] flock unsupported! Consider setting "
+       DBG_ERR("[CEPH] filesystem sharemodes unsupported! Consider setting "
                "\"kernel share modes = no\"\n");
 
        errno = ENOSYS;
@@ -1628,7 +1628,7 @@ static struct vfs_fn_pointers ceph_fns = {
        .ftruncate_fn = cephwrap_ftruncate,
        .fallocate_fn = cephwrap_fallocate,
        .lock_fn = cephwrap_lock,
-       .filesystem_sharemode_fn = cephwrap_kernel_flock,
+       .filesystem_sharemode_fn = cephwrap_filesystem_sharemode,
        .fcntl_fn = cephwrap_fcntl,
        .linux_setlease_fn = cephwrap_linux_setlease,
        .getlock_fn = cephwrap_getlock,