s3:smbd/durable: update the low level write_time before disconnecting the file.
authorStefan Metzmacher <metze@samba.org>
Fri, 19 Oct 2012 08:58:47 +0000 (10:58 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 19 Oct 2012 13:21:10 +0000 (15:21 +0200)
commit137376391d5642c0a18ff70a5184dac4b402fa42
tree1a40c254c29cb04b0d1effbddb80689ebc8b36f0
parent9e7bce53707732700928eaf2bb53a5f1cc5d7784
s3:smbd/durable: update the low level write_time before disconnecting the file.

If we close the low level FD, we should better update the write_time
if needed.

It's not unlikely that the client doesn't reclaim the durable handle,
in that case we may not close the after the durable timeout.

In such a case we should make sure that we at least update the write time
on disconnect, this makes sure backup applications notice that
the file was changed.

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/smbd/durable.c