summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-04-06 20:45:08 +0200
committerVolker Lendecke <vl@samba.org>2009-04-06 21:32:08 +0200
commit3084d49cc000dbfeb01d931d737c695dcd392e4a (patch)
treedf019add8d0a7a28a8a68017a18cd782f440bf82 /source3/torture
parent0c353b57113b02bccaaa3ec09ff9fb1fd8542bd4 (diff)
downloadsamba-3084d49cc000dbfeb01d931d737c695dcd392e4a.tar.gz
samba-3084d49cc000dbfeb01d931d737c695dcd392e4a.tar.bz2
samba-3084d49cc000dbfeb01d931d737c695dcd392e4a.zip
Add a bad hack to enable level 2 oplocks in torture_open_connection_share
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 22e1104d79..804e772516 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -273,6 +273,10 @@ static bool torture_open_connection_share(struct cli_state **c,
if (use_kerberos)
flags |= CLI_FULL_CONNECTION_USE_KERBEROS;
+ if (use_oplocks)
+ flags |= CLI_FULL_CONNECTION_OPLOCKS;
+ if (use_level_II_oplocks)
+ flags |= CLI_FULL_CONNECTION_LEVEL_II_OPLOCKS;
status = cli_full_connection(c, myname,
hostname, NULL, port_to_use,
@@ -285,8 +289,6 @@ static bool torture_open_connection_share(struct cli_state **c,
return False;
}
- if (use_oplocks) (*c)->use_oplocks = True;
- if (use_level_II_oplocks) (*c)->use_level_II_oplocks = True;
(*c)->timeout = 120000; /* set a really long timeout (2 minutes) */
if (do_encrypt) {