smbd: some write time fixes
commitc9fb96146cdae56a2711e176f07620d33ea0e18c
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Sep 2008 13:12:24 +0000 (8 15:12 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Sep 2008 14:25:41 +0000 (8 16:25 +0200)
treedb552aa60a0497b82d53c432b00b9b480201097a
parentae02be5287513659fc8a44fea3942e8ea6fea88a
smbd: some write time fixes

- only the first non truncating write causes
  the write time update with 2 seconds delay.
  It's not enough to check for an existing update event
  as it will be NULL after the event was triggered.

- SMBwrite truncates always update the write time
  unless the sticky write time is set.

- SMBwrite truncates don't trigger a write time update on close.

metze
(This used to be commit 3d17089b6dc773303c8c553f3f6140e60e348fb7)
source3/include/smb.h
source3/smbd/fileio.c