diff options
author | Jeremy Allison <jra@samba.org> | 2009-11-05 16:20:11 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-11-05 16:20:11 -0800 |
commit | 7f9fe127ba31e6dd064d090d5ffc8eeb377627ab (patch) | |
tree | 6b2c63f2d022c82c14ea517bac06e49a605b4f5e /source3/include | |
parent | c2df97f57ce205935c37cd5a90cfeddb129cd92b (diff) | |
download | samba-7f9fe127ba31e6dd064d090d5ffc8eeb377627ab.tar.gz samba-7f9fe127ba31e6dd064d090d5ffc8eeb377627ab.tar.bz2 samba-7f9fe127ba31e6dd064d090d5ffc8eeb377627ab.zip |
Get closer to an accurate model of Windows timestamp changes.
"Normal" non truncate writes always cause the timestamp to
be set on close. Once a close is done on a handle this can
reset the sticky write time to current time also.
Updated smbtorture4 confirms this.
Jeremy.
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index d08ed79050..ef811e5774 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -6108,7 +6108,9 @@ NTSTATUS change_oem_password(struct samu *hnd, char *old_passwd, char *new_passw /* The following definitions come from smbd/close.c */ -void set_close_write_time(struct files_struct *fsp, struct timespec ts); +void set_close_write_time(struct share_mode_lock *lck, + struct files_struct *fsp, + struct timespec ts); NTSTATUS close_file(struct smb_request *req, files_struct *fsp, enum file_close_type close_type); void msg_close_file(struct messaging_context *msg_ctx, @@ -6249,7 +6251,6 @@ int file_ntimes(connection_struct *conn, const struct smb_filename *smb_fname, bool set_sticky_write_time_path(struct file_id fileid, struct timespec mtime); bool set_sticky_write_time_fsp(struct files_struct *fsp, struct timespec mtime); -bool update_write_time(struct files_struct *fsp); NTSTATUS set_create_timespec_ea(connection_struct *conn, struct files_struct *fsp, |