summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/brlock.c5
-rw-r--r--source3/locking/proto.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index 2e08ce64ef..0639649576 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -63,6 +63,11 @@ static void print_lock_struct(unsigned int i, const struct lock_struct *pls)
lock_flav_name(pls->lock_flav) ));
}
+unsigned int brl_num_locks(const struct byte_range_lock *brl)
+{
+ return brl->num_locks;
+}
+
/****************************************************************************
See if two locking contexts are equal.
****************************************************************************/
diff --git a/source3/locking/proto.h b/source3/locking/proto.h
index a51c5a204c..f5137f97d2 100644
--- a/source3/locking/proto.h
+++ b/source3/locking/proto.h
@@ -28,6 +28,8 @@
void brl_init(bool read_only);
void brl_shutdown(void);
+unsigned int brl_num_locks(const struct byte_range_lock *brl);
+
NTSTATUS brl_lock_windows_default(struct byte_range_lock *br_lck,
struct lock_struct *plock,
bool blocking_lock);