summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2021-09-20 14:56:08 -0700
committerChristof Schmitt <cs@samba.org>2021-09-21 18:47:38 +0000
commita2578d9b5642f639cf7016b43e71957478213b76 (patch)
tree3ccbb469490ef9ebc31e87e816ecd44ab5947360 /examples
parent0a26b2386e3fedd5d90e3c0197b31ed31b286699 (diff)
downloadsamba-a2578d9b5642f639cf7016b43e71957478213b76.tar.gz
examples/VFS/skel_transparent: Rename kernel_flock to filesystem_sharemode
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/VFS/skel_transparent.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c
index cc734f7fc59..d6bf3171b95 100644
--- a/examples/VFS/skel_transparent.c
+++ b/examples/VFS/skel_transparent.c
@@ -548,9 +548,10 @@ static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op,
return SMB_VFS_NEXT_LOCK(handle, fsp, op, offset, count, type);
}
-static int skel_kernel_flock(struct vfs_handle_struct *handle,
- struct files_struct *fsp, uint32_t share_mode,
- uint32_t access_mask)
+static int skel_filesystem_sharemode(struct vfs_handle_struct *handle,
+ struct files_struct *fsp,
+ uint32_t share_mode,
+ uint32_t access_mask)
{
return SMB_VFS_NEXT_FILESYSTEM_SHAREMODE(handle,
fsp,
@@ -1318,7 +1319,7 @@ static struct vfs_fn_pointers skel_transparent_fns = {
.ftruncate_fn = skel_ftruncate,
.fallocate_fn = skel_fallocate,
.lock_fn = skel_lock,
- .filesystem_sharemode_fn = skel_kernel_flock,
+ .filesystem_sharemode_fn = skel_filesystem_sharemode,
.fcntl_fn = skel_fcntl,
.linux_setlease_fn = skel_linux_setlease,
.getlock_fn = skel_getlock,