smbd: let delayed update handler also update on-disk timestamps
commitfa3250fdac1c8c79ffec6a4ebaf6183649b9086d
authorRalph Boehme <slow@samba.org>
Sun, 15 Mar 2020 07:30:21 +0000 (15 08:30 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 7 Apr 2020 09:37:25 +0000 (7 09:37 +0000)
treed33e94611cb5347d9fed307087346d85573234fe
parentc8b5d996ec77704835c59f4b2cd8190c31df98c2
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

(back ported from commit 81c1a14e3271aeed7ed4fe6311171b19ba963555)
source3/smbd/fileio.c