vfs: restore stat fields in vfs_stat_fsp()
commitd887047aa0c2489d1d6251ffcb9ce083e86866e1
authorRalph Boehme <slow@samba.org>
Mon, 9 Sep 2019 06:08:06 +0000 (9 08:08 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Sep 2019 22:29:08 +0000 (10 22:29 +0000)
tree41ac3146187420dba32ca84937f900447789c2f3
parentb4aaa612d33caf51b44830d75997d4ad93b7740d
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

(cherry picked from commit 95655fe683d499d93f3844ed72ad332ef64adb96)

Autobuild-User(v4-11-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-11-test): Tue Sep 10 22:29:08 UTC 2019 on sn-devel-184
selftest/knownfail.d/samba3.smb2.create [deleted file]
source3/smbd/durable.c
source3/smbd/vfs.c