]> 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)
committerJule Anger <janger@samba.org>
Thu, 17 Apr 2025 11:31:14 +0000 (11:31 +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>
(cherry picked from commit 2772f147c9b13cd2160181c4f7905b54ab765054)

source3/locking/brlock.c
source3/locking/proto.h

index fcbce52f9c1b96ffac2ea5c8bdc70dc28f0860e7..0e58339b1080f73b931f554d85c420bd3ab46140 100644 (file)
@@ -2030,3 +2030,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 0b22093b918aa8761750c35dca82aa2e6570d487..8285aa9f1370b04acffa4f3bdcb22b5926ca888e 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  */