git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef5f486
)
allow for 0 range locks in locktest
author
Andrew Tridgell
<tridge@samba.org>
Fri, 24 Aug 2001 04:57:13 +0000
(
04:57
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 24 Aug 2001 04:57:13 +0000
(
04:57
+0000)
source/torture/locktest.c
patch
|
blob
|
history
diff --git
a/source/torture/locktest.c
b/source/torture/locktest.c
index f7f7c580aad54e8096661dfb92fa0775f4173ef6..54cf0dd351898d121b82efffb4cbc8fd26469b86 100644
(file)
--- a/
source/torture/locktest.c
+++ b/
source/torture/locktest.c
@@
-388,7
+388,7
@@
static void test_locks(char *share[NSERVERS])
recorded[n].conn = random() % NCONNECTIONS;
recorded[n].f = random() % NFILES;
recorded[n].start = LOCKBASE + ((unsigned)random() % (LOCKRANGE-1));
- recorded[n].len =
1 +
+ recorded[n].len =
random() % (LOCKRANGE-(recorded[n].start-LOCKBASE));
recorded[n].start *= RANGE_MULTIPLE;
recorded[n].len *= RANGE_MULTIPLE;