vfs_not_implemented: Rename argument for flock function
authorChristof Schmitt <cs@samba.org>
Fri, 3 Jan 2020 19:06:40 +0000 (12:06 -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/include/vfs.h
source3/modules/vfs_not_implemented.c

index d23cf59fe1d6a6a5348462ef97d5d216f7bde1e1..e4881d4940b679da24bf6827f063e0739cec0852 100644 (file)
@@ -1770,7 +1770,7 @@ bool vfs_not_implemented_lock(vfs_handle_struct *handle, files_struct *fsp, int
                              off_t offset, off_t count, int type);
 int vfs_not_implemented_kernel_flock(struct vfs_handle_struct *handle,
                                     struct files_struct *fsp,
-                                    uint32_t share_mode, uint32_t access_mask);
+                                    uint32_t share_access, uint32_t access_mask);
 int vfs_not_implemented_fcntl(struct vfs_handle_struct *handle,
                              struct files_struct *fsp, int cmd, va_list cmd_arg);
 int vfs_not_implemented_linux_setlease(struct vfs_handle_struct *handle,
index b68b9e2e8b912d8677e590b1964d3410f6804b96..dc4ac25b03575eb960a8317238f864f8dc002c0a 100644 (file)
@@ -420,7 +420,7 @@ bool vfs_not_implemented_lock(vfs_handle_struct *handle, files_struct *fsp, int
 
 int vfs_not_implemented_kernel_flock(struct vfs_handle_struct *handle,
                                     struct files_struct *fsp,
-                                    uint32_t share_mode, uint32_t access_mask)
+                                    uint32_t share_access, uint32_t access_mask)
 {
        errno = ENOSYS;
        return -1;