]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:vfs_fileid: introduce 'fileid:nolock_max_slots'
authorStefan Metzmacher <metze@samba.org>
Wed, 29 Jun 2022 15:09:51 +0000 (17:09 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 Jul 2022 15:09:35 +0000 (15:09 +0000)
This controlls the maximum number of concurrent locking slots
on each host. It specifies the maximal number of locking.tdb
records for a single inode.

It can be used to deliberately break lock coherency not
only between cluster nodes, but also between processes on
each node.

This allows administrators to control the behavior that's
currently only available by 'fsname_norootdir_ext' to
other cases as well.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fileid.c

index 9ef0d6919df90cda1f1397772ca9df71f07b7f8f..f9472c275ee2a587c448b3ec8d248140f2899a8d 100644 (file)
@@ -575,6 +575,9 @@ static int fileid_connect(struct vfs_handle_struct *handle,
                }
        }
 
+       max_slots = lp_parm_ulonglong(SNUM(handle->conn),
+                                     "fileid", "nolock_max_slots",
+                                     max_slots);
        max_slots = MAX(max_slots, 1);
 
        data->nolock.extid = fileid_mapping_nolock_extid(max_slots);