From 84e00add260ea274ea36e68f2a37efd712e00acd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Apr 2006 04:36:09 +0000 Subject: r15032: change BENCH-NBENCH to always break to none, rather than accepting a levelII break offer from the server. (This used to be commit 7d7853476e03262133093c69f1f93ee02cc87840) --- source4/torture/nbench/nbio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4/torture/nbench/nbio.c') diff --git a/source4/torture/nbench/nbio.c b/source4/torture/nbench/nbio.c index ce408bba93..96d763651e 100644 --- a/source4/torture/nbench/nbio.c +++ b/source4/torture/nbench/nbio.c @@ -181,10 +181,11 @@ static struct smbcli_state *c; /* a handler function for oplock break requests */ -static BOOL oplock_handler(struct smbcli_transport *transport, uint16_t tid, uint16_t fnum, uint8_t level, void *private) +static BOOL oplock_handler(struct smbcli_transport *transport, uint16_t tid, + uint16_t fnum, BOOL shared, uint8_t level, void *private) { struct smbcli_tree *tree = private; - return smbcli_oplock_ack(tree, fnum, level); + return smbcli_oplock_ack(tree, fnum, OPLOCK_BREAK_TO_NONE); } void nb_setup(struct smbcli_state *cli, int id) -- cgit