diff options
author | Christof Schmitt <cs@samba.org> | 2021-09-20 14:51:02 -0700 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2021-09-21 18:47:38 +0000 |
commit | c794e77381477f4a3d5e96c5100cfbf0b1804c52 (patch) | |
tree | 2e20fc543e0f298afb41be55324fedbfbd908ed6 /examples/VFS/skel_transparent.c | |
parent | f3b5733df7637ad0c6d4bb42378ae430a35cc633 (diff) | |
download | samba-c794e77381477f4a3d5e96c5100cfbf0b1804c52.tar.gz |
VFS: Rename kernel_flock to filesystem_sharemode
With the removal of the call to flock LOCK_MAND, the only remaining use
of this VFS path is to register sharemodes with specific file systems.
Rename the VFS call to reflect that this is no longer related to flock.
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'examples/VFS/skel_transparent.c')
-rw-r--r-- | examples/VFS/skel_transparent.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index 77121259550..cc734f7fc59 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -552,7 +552,10 @@ static int skel_kernel_flock(struct vfs_handle_struct *handle, struct files_struct *fsp, uint32_t share_mode, uint32_t access_mask) { - return SMB_VFS_NEXT_KERNEL_FLOCK(handle, fsp, share_mode, access_mask); + return SMB_VFS_NEXT_FILESYSTEM_SHAREMODE(handle, + fsp, + share_mode, + access_mask); } static int skel_fcntl(struct vfs_handle_struct *handle, @@ -1315,7 +1318,7 @@ static struct vfs_fn_pointers skel_transparent_fns = { .ftruncate_fn = skel_ftruncate, .fallocate_fn = skel_fallocate, .lock_fn = skel_lock, - .kernel_flock_fn = skel_kernel_flock, + .filesystem_sharemode_fn = skel_kernel_flock, .fcntl_fn = skel_fcntl, .linux_setlease_fn = skel_linux_setlease, .getlock_fn = skel_getlock, |