vfs: restore stat fields in vfs_stat_fsp()
authorRalph Boehme <slow@samba.org>
Mon, 9 Sep 2019 06:08:06 +0000 (08:08 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 10 Sep 2019 20:22:21 +0000 (20:22 +0000)
commit95655fe683d499d93f3844ed72ad332ef64adb96
tree0fb2a75a94101082203e08cd40481877a0533d98
parente00e78cfeda99bd5374eff8fb4ba84873e4e46b7
vfs: restore stat fields in vfs_stat_fsp()

This ensures we preserve btime, itime and File-ID.

As the Durable Handles code calls vfs_stat_fsp() in the DH disconnect function,
previously the btime was lost and NOT stored in the cookie. With this change the
cookie will store the correct btime (and iflags), which requires us to call
dos_mode() in the reconnect function to ensure we pass
vfs_default_durable_reconnect_check_stat().

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Sep 10 20:22:21 UTC 2019 on sn-devel-184
selftest/knownfail.d/samba3.smb2.create [deleted file]
source3/smbd/durable.c
source3/smbd/vfs.c