diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-01-31 20:20:24 +0300 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-02-15 11:09:17 +0100 |
commit | 738b2abe784bc38bdaf1abc913a401e0e732e188 (patch) | |
tree | 65360ea9dabca5e165e1cbdf96426b93384bf39a /source4/ntvfs/common/brlock.c | |
parent | 3c5f537302294dc5306cffed5dcd57221ac2c96d (diff) | |
download | samba-738b2abe784bc38bdaf1abc913a401e0e732e188.tar.gz samba-738b2abe784bc38bdaf1abc913a401e0e732e188.tar.bz2 samba-738b2abe784bc38bdaf1abc913a401e0e732e188.zip |
s4: Don't grant level II oplock to a file with byte-range locks.
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Tue Feb 15 11:09:17 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/ntvfs/common/brlock.c')
-rw-r--r-- | source4/ntvfs/common/brlock.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/ntvfs/common/brlock.c b/source4/ntvfs/common/brlock.c index a5bc5c1db4..154494e4af 100644 --- a/source4/ntvfs/common/brlock.c +++ b/source4/ntvfs/common/brlock.c @@ -125,3 +125,13 @@ NTSTATUS brl_close(struct brl_context *brl, { return ops->brl_close(brl, brlh); } + +/* + Get a number of locks associated with a open file. +*/ +NTSTATUS brl_count(struct brl_context *brl, + struct brl_handle *brlh, + int *count) +{ + return ops->brl_count(brl, brlh, count); +} |