From: Christof Schmitt Date: Mon, 20 Sep 2021 22:26:19 +0000 (-0700) Subject: vfs_default: Rename kernel_flock to filesystem_sharemode X-Git-Tag: ldb-2.5.0~607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3224eb8fcf79b5f2554a6195aeeb313dd25c2de5;p=thirdparty%2Fsamba.git vfs_default: Rename kernel_flock to filesystem_sharemode Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index a2c43e2de5a..37e9721c72b 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -3015,8 +3015,10 @@ static bool vfswrap_lock(vfs_handle_struct *handle, files_struct *fsp, int op, o return result; } -static int vfswrap_kernel_flock(vfs_handle_struct *handle, files_struct *fsp, - uint32_t share_access, uint32_t access_mask) +static int vfswrap_filesystem_sharemode(vfs_handle_struct *handle, + files_struct *fsp, + uint32_t share_access, + uint32_t access_mask) { errno = ENOTSUP; return -1; @@ -3970,7 +3972,7 @@ static struct vfs_fn_pointers vfs_default_fns = { .ftruncate_fn = vfswrap_ftruncate, .fallocate_fn = vfswrap_fallocate, .lock_fn = vfswrap_lock, - .filesystem_sharemode_fn = vfswrap_kernel_flock, + .filesystem_sharemode_fn = vfswrap_filesystem_sharemode, .fcntl_fn = vfswrap_fcntl, .linux_setlease_fn = vfswrap_linux_setlease, .getlock_fn = vfswrap_getlock,