From 07948ef6e12ac52ecbb23089495d3760028f019e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 10 Sep 2013 19:41:32 +0200 Subject: smbd: Add brl_fsp access function --- source3/locking/brlock.c | 5 +++++ source3/locking/proto.h | 1 + 2 files changed, 6 insertions(+) (limited to 'source3/locking') diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 0639649576..cc5d7a8ae0 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -68,6 +68,11 @@ unsigned int brl_num_locks(const struct byte_range_lock *brl) return brl->num_locks; } +struct files_struct *brl_fsp(struct byte_range_lock *brl) +{ + return brl->fsp; +} + /**************************************************************************** See if two locking contexts are equal. ****************************************************************************/ diff --git a/source3/locking/proto.h b/source3/locking/proto.h index f5137f97d2..1573f6b306 100644 --- a/source3/locking/proto.h +++ b/source3/locking/proto.h @@ -29,6 +29,7 @@ void brl_init(bool read_only); void brl_shutdown(void); unsigned int brl_num_locks(const struct byte_range_lock *brl); +struct files_struct *brl_fsp(struct byte_range_lock *brl); NTSTATUS brl_lock_windows_default(struct byte_range_lock *br_lck, struct lock_struct *plock, -- cgit