summaryrefslogtreecommitdiff
path: root/source3/smbd/durable.c
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-04-02 15:31:10 +0200
committerJeremy Allison <jra@samba.org>2020-04-03 19:05:43 +0000
commitadaca9597ce38292e5db0fd7522d3cb4ac7e9bbb (patch)
tree3e7932e7d245c138db58d9dfc2e541e86f6626a9 /source3/smbd/durable.c
parent7c386c08dcc9e52b40f64034b6f726e477e04722 (diff)
downloadsamba-adaca9597ce38292e5db0fd7522d3cb4ac7e9bbb.tar.gz
smbd: move files_struct.update_write_time_triggered to a bitfield
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/durable.c')
-rw-r--r--source3/smbd/durable.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/smbd/durable.c b/source3/smbd/durable.c
index 9a4ebfb12d2..79cfbe29d29 100644
--- a/source3/smbd/durable.c
+++ b/source3/smbd/durable.c
@@ -101,7 +101,8 @@ 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_triggered =
+ fsp->fsp_flags.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 = full_timespec_to_nt_time(
@@ -252,7 +253,8 @@ 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_triggered =
+ fsp->fsp_flags.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 = full_timespec_to_nt_time(
@@ -748,7 +750,8 @@ 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->fsp_flags.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 = nt_time_to_full_timespec(