summaryrefslogtreecommitdiff
path: root/source/include/smb.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-09-08 15:12:24 +0200
committerKarolin Seeger <kseeger@samba.org>2008-09-09 12:14:04 +0200
commitef6697435efba2afe15498caeb5daae7aea10604 (patch)
tree304990766f169324e7ec5f0a3af45dcb0536a85d /source/include/smb.h
parentdb306bfee30437d2858788ea783ccb5acabd1ffa (diff)
downloadsamba-ef6697435efba2afe15498caeb5daae7aea10604.tar.gz
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 (cherry picked from commit 142a9703ae19a467a23ee72429f899dae156df64)
Diffstat (limited to 'source/include/smb.h')
-rw-r--r--source/include/smb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/include/smb.h b/source/include/smb.h
index 5194c7303c2..3c7058fc29d 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -487,6 +487,7 @@ typedef struct files_struct {
uint32 access_mask; /* NTCreateX access bits (FILE_READ_DATA etc.) */
uint32 share_access; /* NTCreateX share constants (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE). */
+ bool update_write_time_triggered;
struct timed_event *update_write_time_event;
bool update_write_time_on_close;
struct timespec close_write_time;