]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_gpfs: Rename argument of flock function
authorChristof Schmitt <cs@samba.org>
Fri, 3 Jan 2020 19:45:06 +0000 (12:45 -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_gpfs.c

index 25df3266902a180a722cabc53c725979711ab5c1..0825b71e634e687cf509feec5255bd667bf95ba3 100644 (file)
@@ -132,7 +132,7 @@ static bool set_gpfs_sharemode(files_struct *fsp, uint32_t access_mask,
 }
 
 static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, files_struct *fsp,
-                                uint32_t share_mode, uint32_t access_mask)
+                                uint32_t share_access, uint32_t access_mask)
 {
 
        struct gpfs_config_data *config;
@@ -158,9 +158,9 @@ static int vfs_gpfs_kernel_flock(vfs_handle_struct *handle, files_struct *fsp,
                return 0;
        }
 
-       kernel_flock(fsp->fh->fd, share_mode, access_mask);
+       kernel_flock(fsp->fh->fd, share_access, access_mask);
 
-       if (!set_gpfs_sharemode(fsp, access_mask, share_mode)) {
+       if (!set_gpfs_sharemode(fsp, access_mask, share_access)) {
                ret = -1;
        }