]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/locking: add brl_set_modified()
authorRalph Boehme <slow@samba.org>
Wed, 29 Jan 2025 05:13:29 +0000 (06:13 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 2 Apr 2025 18:05:48 +0000 (18:05 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15767

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/locking/brlock.c
source3/locking/proto.h

index 750ae1c88f0650c965125071d5c91eff95bc5836..613b3d7b9408d33969afe82e6f102b88c5ea2953 100644 (file)
@@ -2032,3 +2032,8 @@ NTSTATUS share_mode_do_locked_brl(files_struct *fsp,
        TALLOC_FREE(frame);
        return NT_STATUS_OK;
 }
+
+void brl_set_modified(struct byte_range_lock *br_lck, bool modified)
+{
+       br_lck->modified = modified;
+}
index 662240205ab94d4ba89d97c7485decccd729810e..2a39d65de523860fea3a77855cba3623ffc04894 100644 (file)
@@ -99,6 +99,7 @@ struct byte_range_lock *brl_get_locks(TALLOC_CTX *mem_ctx,
                                        files_struct *fsp);
 struct byte_range_lock *brl_get_locks_readonly(files_struct *fsp);
 bool brl_cleanup_disconnected(struct file_id fid, uint64_t open_persistent_id);
+void brl_set_modified(struct byte_range_lock *br_lck, bool modified);
 
 /* The following definitions come from locking/locking.c  */