diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-04-10 04:51:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:04:01 -0500 |
commit | 72343b9615c2ecbff0676e4a5d1b5ee4fe50ad58 (patch) | |
tree | 790d76678cdf9e011bd970788258e81653c8b3e9 /source4/torture/torture_util.c | |
parent | 4480a62ec3845d1e4f7d3f161f542d7cfe748320 (diff) | |
download | samba-72343b9615c2ecbff0676e4a5d1b5ee4fe50ad58.tar.gz samba-72343b9615c2ecbff0676e4a5d1b5ee4fe50ad58.tar.bz2 samba-72343b9615c2ecbff0676e4a5d1b5ee4fe50ad58.zip |
r15014: added a simple batch oplock benchmark
Jeremy, Samba3 currently fails this test with a 2.6.16-rc6 kernel and
kernel oplocks enabled. With kernel oplock off it passes, though its a
bit slow
(This used to be commit 99df20246049c2645b04d5790b9e41c607872dc7)
Diffstat (limited to 'source4/torture/torture_util.c')
-rw-r--r-- | source4/torture/torture_util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c index 69c462bc6d..12e4559137 100644 --- a/source4/torture/torture_util.c +++ b/source4/torture/torture_util.c @@ -493,6 +493,15 @@ _PUBLIC_ BOOL torture_open_connection(struct smbcli_state **c) return torture_open_connection_share(NULL, c, host, share, NULL); } +_PUBLIC_ BOOL torture_open_connection_ev(struct smbcli_state **c, + struct event_context *ev) +{ + const char *host = lp_parm_string(-1, "torture", "host"); + const char *share = lp_parm_string(-1, "torture", "share"); + + return torture_open_connection_share(NULL, c, host, share, ev); +} + _PUBLIC_ BOOL torture_close_connection(struct smbcli_state *c) |