s3:vfs_fileid: always add the 'nolock' behavior via file_id.extid
commit72419736bdad62a82b81e8c870f5305d92a6d77d
authorStefan Metzmacher <metze@samba.org>
Wed, 29 Jun 2022 14:47:50 +0000 (29 16:47 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 Jul 2022 15:09:35 +0000 (5 15:09 +0000)
treeff5ae13c548ffad58016772f5bab91f7c7a338cb
parenta1882538299a79a55c1155197621a2459d413fe2
s3:vfs_fileid: always add the 'nolock' behavior via file_id.extid

file_id.extid was filled with getpid() by 'fsname_norootdir_ext'.

However instead of forcing the existing 'hostname' algorithm for the 'nolock'
case, we'll now generate file_id.extid also based the hostname, vnn
and for 'fsname_norootdir_ext' also the pid.

This simplifies further changes and gives us the ability to generate stable
results for file_id.{devid,inode} based on the main algorithm. This is important
as we have a push_file_id_16() helper function used in places to generate a
stable identifier of the file that is also client visible and might be stored on
stable storage (acl_tdb, xattr_tdb). While the file_id.extid is only used
internally in volatile databases.

Review with: git show --patience

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