smbd: let delayed update handler also update on-disk timestamps
authorRalph Boehme <slow@samba.org>
Sun, 15 Mar 2020 07:30:21 +0000 (08:30 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 19 Mar 2020 03:05:40 +0000 (03:05 +0000)
commit81c1a14e3271aeed7ed4fe6311171b19ba963555
tree44b2839e349aac27c88e70021479843f4311e463
parent53de2da7acfc24513082190502d93306c12b7434
smbd: let delayed update handler also update on-disk timestamps

Let delayed update handler also update on-disk timestamps by calling
trigger_write_time_update_immediate().

trigger_write_time_update_immediate() sets fsp->update_write_time_on_close to
false which prevents updating the write-time on close if there was ever only one
write to the file.

Besides resetting fsp->update_write_time_on_close and setting the on-disk timestamps
trigger_write_time_update_immediate() takes the same steps as the removed code.

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Mar 19 03:05:40 UTC 2020 on sn-devel-184
selftest/knownfail.d/samba3.smb2.timestamps [deleted file]
source3/smbd/fileio.c