diff options
author | Ralph Boehme <slow@samba.org> | 2020-04-02 15:31:10 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-04-03 19:05:43 +0000 |
commit | adaca9597ce38292e5db0fd7522d3cb4ac7e9bbb (patch) | |
tree | 3e7932e7d245c138db58d9dfc2e541e86f6626a9 /source3/smbd/durable.c | |
parent | 7c386c08dcc9e52b40f64034b6f726e477e04722 (diff) | |
download | samba-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.c | 9 |
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( |