diff options
author | Dave Richards <dave.richards@isilon.com> | 2009-03-13 14:15:28 -0700 |
---|---|---|
committer | Tim Prouty <tprouty@samba.org> | 2009-03-13 14:16:55 -0700 |
commit | 1fcc11ff25f1c3e7586b13b24e5d0eec4ccfaedc (patch) | |
tree | 48e52776085f9db96fce7e62f695aef5c6d774da /source3/include/proto.h | |
parent | 1355dc2fd3a10c54fc3534409b78972d59d59b30 (diff) | |
download | samba-1fcc11ff25f1c3e7586b13b24e5d0eec4ccfaedc.tar.gz samba-1fcc11ff25f1c3e7586b13b24e5d0eec4ccfaedc.tar.bz2 samba-1fcc11ff25f1c3e7586b13b24e5d0eec4ccfaedc.zip |
s3: Add strict lock/unlock calls to the vfs layer to replace is_locked
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r-- | source3/include/proto.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 9badb95a1c..5811574068 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -3409,11 +3409,16 @@ void brl_register_msgs(struct messaging_context *msg_ctx); const char *lock_type_name(enum brl_type lock_type); const char *lock_flav_name(enum brl_flavour lock_flav); -bool is_locked(files_struct *fsp, - uint32 smbpid, - uint64_t count, - uint64_t offset, - enum brl_type lock_type); +void init_strict_lock_struct(files_struct *fsp, + uint32 smbpid, + br_off start, + br_off size, + enum brl_type lock_type, + struct lock_struct *plock); +bool strict_lock_default(files_struct *fsp, + struct lock_struct *plock); +void strict_unlock_default(files_struct *fsp, + struct lock_struct *plock); NTSTATUS query_lock(files_struct *fsp, uint32 *psmbpid, uint64_t *pcount, |