vfs_gpfs: Create fileid from filesystem metadata
commitf2339fe0dde2daedfab07d51709d7584c7f00e60
authorChristof Schmitt <cs@samba.org>
Mon, 19 Aug 2019 23:23:11 +0000 (19 16:23 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 19 Nov 2019 21:19:36 +0000 (19 21:19 +0000)
tree5d7522075e0f4d0e716a5be265b0bdaf072b6e86
parentba5d4803bab3f8fd980a5776f375b4e57b82cc85
vfs_gpfs: Create fileid from filesystem metadata

MacOS SMB clients require that file ids are not quickly reused when
files are deleted and new files are created with the same name. Inode
numbers do not satisfy that requirement, as they will be quickly reused.

To address this problem, create a unique id from the available file
system specific metadata. As that id is larger than the available 64bit,
use a hash to generate a 64bit id for usage as fileid.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/modules/vfs_gpfs.c