vfs_ceph: Rename argument for flock function
authorChristof Schmitt <cs@samba.org>
Fri, 3 Jan 2020 19:09:23 +0000 (12:09 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 8 Jan 2020 00:01:36 +0000 (00:01 +0000)
MS-SMB2 and the smbd code refer to this field as share_access. Use the
same name in the function argument.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_ceph.c

index 82bcb154f77271e0277f559103e0b5d58eed3ce9..70059db0c018077f850ede15210431c3be8dbf42 100644 (file)
@@ -1085,8 +1085,10 @@ 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_mode, uint32_t access_mask)
+static int cephwrap_kernel_flock(struct vfs_handle_struct *handle,
+                                files_struct *fsp,
+                                uint32_t share_access,
+                                uint32_t access_mask)
 {
        DBG_ERR("[CEPH] flock unsupported! Consider setting "
                "\"kernel share modes = no\"\n");