summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-04-10 05:12:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:01 -0500
commit48d3fb39fff4d6f92c121557cf6c754e4ffe8fe8 (patch)
tree9b613222f1b1c008bc91007e92334f9533e111af /source4/torture/raw
parent72343b9615c2ecbff0676e4a5d1b5ee4fe50ad58 (diff)
downloadsamba-48d3fb39fff4d6f92c121557cf6c754e4ffe8fe8.tar.gz
samba-48d3fb39fff4d6f92c121557cf6c754e4ffe8fe8.tar.bz2
samba-48d3fb39fff4d6f92c121557cf6c754e4ffe8fe8.zip
r15015: add an explanation for this test
(This used to be commit 9fdeec506fe5005601c0589574d2b8ae3c6166e5)
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/oplock.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c
index e7fa335e7a..6008724d48 100644
--- a/source4/torture/raw/oplock.c
+++ b/source4/torture/raw/oplock.c
@@ -553,7 +553,16 @@ BOOL torture_bench_oplock(struct torture_context *torture)
NTCREATEX_FLAGS_REQUEST_BATCH_OPLOCK;
tv = timeval_current();
-
+
+ /*
+ we open the same file with SHARE_ACCESS_NONE from all the
+ connections in a round robin fashion. Each open causes an
+ oplock break on the previous connection, which is answered
+ by the oplock_handler_close() to close the file.
+
+ This measures how fast we can pass on oplocks, and stresses
+ the oplock handling code
+ */
printf("Running for %d seconds\n", timelimit);
while (timeval_elapsed(&tv) < timelimit) {
for (i=0;i<torture_nprocs;i++) {