From: Stefan Metzmacher Date: Wed, 29 Jun 2022 15:50:08 +0000 (+0200) Subject: s3:vfs_fileid: add 'fileid:nolock_all_inodes = BOOL' X-Git-Tag: tevent-0.13.0~195 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=a63087f527eceeba1def358435dc3e5fb8059b26;p=samba.git s3:vfs_fileid: add 'fileid:nolock_all_inodes = BOOL' This adds the feature of the 'hostname' 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, as this will only alter file_id.extid: vfs objects = fileid fileid:algorithm = next_module fileid:nolock_all_inodes = yes This should be preferred unless someone is already using the 'hostname' algorithm. Note this is only for testing (or read only shares if at all...) Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c index c6d25efe97b..2c67946efb3 100644 --- a/source3/modules/vfs_fileid.c +++ b/source3/modules/vfs_fileid.c @@ -577,6 +577,9 @@ static int fileid_connect(struct vfs_handle_struct *handle, } } + data->nolock.force_all_inodes = lp_parm_bool(SNUM(handle->conn), + "fileid", "nolock_all_inodes", + data->nolock.force_all_inodes); data->nolock.force_all_dirs = lp_parm_bool(SNUM(handle->conn), "fileid", "nolock_all_dirs", data->nolock.force_all_dirs);