diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-03-12 15:32:47 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-07 12:29:25 +0200 |
commit | 2ccf50256e31bd7b9da0f7a7c223bebca5bca062 (patch) | |
tree | cce0d5430e82941b8195e6952fd2704241f4ddfa /source3/include | |
parent | 4f715d110279098bb62cb3f5b0831f1a8868068a (diff) | |
download | samba-2ccf50256e31bd7b9da0f7a7c223bebca5bca062.tar.gz samba-2ccf50256e31bd7b9da0f7a7c223bebca5bca062.tar.bz2 samba-2ccf50256e31bd7b9da0f7a7c223bebca5bca062.zip |
locking: store the write time in the locking.tdb
This is needed to implement the strange write time update
logic later. We need to store 2 time timestamps to
distinguish between the time the file system had before
the first client opened the file and a forced timestamp update.
metze
(This used to be commit 6aaa2ce0eeb46f6735ec984a2e7aadde7a7f456d)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/smb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h index 4d18dc594f..73695da7f0 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -811,6 +811,8 @@ struct share_mode_lock { struct share_mode_entry *share_modes; UNIX_USER_TOKEN *delete_token; bool delete_on_close; + struct timespec old_write_time; + struct timespec changed_write_time; bool fresh; bool modified; struct db_record *record; @@ -826,6 +828,8 @@ struct locking_data { struct { int num_share_mode_entries; bool delete_on_close; + struct timespec old_write_time; + struct timespec changed_write_time; uint32 delete_token_size; /* Only valid if either of the two previous fields are True. */ |