diff options
author | Volker Lendecke <vl@samba.org> | 2013-09-10 19:41:32 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2013-09-11 08:27:11 +0200 |
commit | 07948ef6e12ac52ecbb23089495d3760028f019e (patch) | |
tree | 79f3be771688e7d5c61d5368274a281cd34fa486 /source3/locking | |
parent | 6bcfc1a9daad1432c45db816d32ac5076f748e81 (diff) | |
download | samba-07948ef6e12ac52ecbb23089495d3760028f019e.tar.gz samba-07948ef6e12ac52ecbb23089495d3760028f019e.tar.bz2 samba-07948ef6e12ac52ecbb23089495d3760028f019e.zip |
smbd: Add brl_fsp access function
Diffstat (limited to 'source3/locking')
-rw-r--r-- | source3/locking/brlock.c | 5 | ||||
-rw-r--r-- | source3/locking/proto.h | 1 |
2 files changed, 6 insertions, 0 deletions
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, |