From: Stefan Metzmacher Date: Wed, 29 Jun 2022 15:50:08 +0000 (+0200) Subject: s3:vfs_fileid: add 'fileid:nolock_all_dirs = BOOL' X-Git-Tag: tevent-0.13.0~196 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc478f4897fe5b8b1ca941f44d1b025a3130ae0a;p=thirdparty%2Fsamba.git s3:vfs_fileid: add 'fileid:nolock_all_dirs = BOOL' This adds the feature of the 'fsname_nodirs' algorithm, but provides it for all algorithms, including 'next_module'. This can be used to deliberately break lock coherency, but keep the devid/inode pair untouched, e.g. vfs objects = fileid fileid:algorithm = next_module fileid:nolock_all_dirs = yes Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c index 4f7e2371bd1..c6d25efe97b 100644 --- a/source3/modules/vfs_fileid.c +++ b/source3/modules/vfs_fileid.c @@ -577,6 +577,10 @@ static int fileid_connect(struct vfs_handle_struct *handle, } } + data->nolock.force_all_dirs = lp_parm_bool(SNUM(handle->conn), + "fileid", "nolock_all_dirs", + data->nolock.force_all_dirs); + max_slots = lp_parm_ulonglong(SNUM(handle->conn), "fileid", "nolock_max_slots", max_slots);