smbd: add zero_file_id flag
commit6711522e1e57980e50e245f43167d0daf5a705ad
authorUri Simchoni <uri@samba.org>
Thu, 23 Mar 2017 12:08:26 +0000 (23 14:08 +0200)
committerRalph Boehme <slow@samba.org>
Sun, 26 Mar 2017 17:42:16 +0000 (26 19:42 +0200)
tree80094c47c659dce80e491bbb7d02bda42dcf4264
parent1b36cda7cf20746f85b18a52e2e24fbc5ba73535
smbd: add zero_file_id flag

This flag instructs the SMB layer to report a zero on-disk
file identifier.

According to [MS-SMB2] 3.3.5.9.9, the reported on-disk file ID
SHOULD be unique. However, macOS clients seem to expect it to be
unique over time as well, like the HFS+ CNID. Reporting a file ID
of 0 seems to instruct the Mac client not to trust the server-reported
file ID.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12715

Signed-off-by: Uri Simchoni <uri@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/globals.h
source3/smbd/proto.h
source3/smbd/trans2.c