diff options
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r-- | source3/locking/locking.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 9199591d9e..7063b54d9c 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -448,6 +448,11 @@ char *share_mode_str(TALLOC_CTX *ctx, int num, const struct share_mode_entry *e) (unsigned int)e->name_hash); } +/******************************************************************* + Fetch a share mode where we know one MUST exist. This call reference + counts it internally to allow for nested lock fetches. +********************************************************************/ + struct share_mode_lock *get_share_mode_lock(TALLOC_CTX *mem_ctx, const struct file_id id) { |