smbd: some write time fixes
commitbe8ac33179f56296118435e2732ccffdf7ddd305
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Sep 2008 13:12:24 +0000 (8 15:12 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 8 Sep 2008 16:57:07 +0000 (8 09:57 -0700)
tree5130c5770a474189c05c61ecf8661bffdf7f9806
parent77b3ca1a4be4ae780186ab4d46ec114b8dea41a8
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
source/include/smb.h
source/smbd/fileio.c