]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbd/durable: add write_time specific stuff to vfs_default_durable_cookie
authorStefan Metzmacher <metze@samba.org>
Fri, 19 Oct 2012 09:12:05 +0000 (11:12 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 19 Oct 2012 15:12:29 +0000 (17:12 +0200)
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

source3/smbd/durable.c

index f8e82c2a14aaa5267d147ac5a35906d0f14df9f8..348135c78aefb3c8f590e95372b537f6218f8aab 100644 (file)
@@ -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)) {