summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-10-19 11:12:05 +0200
committerMichael Adam <obnox@samba.org>2012-10-19 17:12:29 +0200
commit24d225f44ee4958ed5e2bd934125a9b0c4fc3323 (patch)
treee8c8b51ffaa3d37f26810eb5ac571913dd980751
parent506249b86382331c39676b8632ad33b535f9fb03 (diff)
downloadsamba-24d225f44ee4958ed5e2bd934125a9b0c4fc3323.tar.gz
samba-24d225f44ee4958ed5e2bd934125a9b0c4fc3323.tar.bz2
samba-24d225f44ee4958ed5e2bd934125a9b0c4fc3323.zip
s3:smbd/durable: add write_time specific stuff to vfs_default_durable_cookie
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Oct 19 17:12:29 CEST 2012 on sn-devel-104
-rw-r--r--source3/smbd/durable.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c
index f8e82c2a14..348135c78a 100644
--- a/source3/smbd/durable.c
+++ b/source3/smbd/durable.c
@@ -99,6 +99,10 @@ NTSTATUS vfs_default_durable_cookie(struct files_struct *fsp,
cookie.base_name = fsp->fsp_name->base_name;
cookie.initial_allocation_size = fsp->initial_allocation_size;
cookie.position_information = fsp->fh->position_information;
+ cookie.update_write_time_triggered = fsp->update_write_time_triggered;
+ cookie.update_write_time_on_close = fsp->update_write_time_on_close;
+ cookie.write_time_forced = fsp->write_time_forced;
+ cookie.close_write_time = fsp->close_write_time;
ndr_err = ndr_push_struct_blob(cookie_blob, mem_ctx, &cookie,
(ndr_push_flags_fn_t)ndr_push_vfs_default_durable_cookie);
@@ -229,6 +233,10 @@ NTSTATUS vfs_default_durable_disconnect(struct files_struct *fsp,
cookie.base_name = fsp->fsp_name->base_name;
cookie.initial_allocation_size = fsp->initial_allocation_size;
cookie.position_information = fsp->fh->position_information;
+ cookie.update_write_time_triggered = fsp->update_write_time_triggered;
+ cookie.update_write_time_on_close = fsp->update_write_time_on_close;
+ cookie.write_time_forced = fsp->write_time_forced;
+ cookie.close_write_time = fsp->close_write_time;
ndr_err = ndr_push_struct_blob(&new_cookie_blob, mem_ctx, &cookie,
(ndr_push_flags_fn_t)ndr_push_vfs_default_durable_cookie);
@@ -453,6 +461,10 @@ NTSTATUS vfs_default_durable_reconnect(struct connection_struct *conn,
fsp->initial_allocation_size = cookie.initial_allocation_size;
fsp->fh->position_information = cookie.position_information;
+ fsp->update_write_time_triggered = cookie.update_write_time_triggered;
+ fsp->update_write_time_on_close = cookie.update_write_time_on_close;
+ fsp->write_time_forced = cookie.write_time_forced;
+ fsp->close_write_time = cookie.close_write_time;
status = fsp_set_smb_fname(fsp, smb_fname);
if (!NT_STATUS_IS_OK(status)) {