git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69ca2bd
)
s4:torture: test also break semantics between batch-oplocks and leases
author
Michael Adam
<obnox@samba.org>
Sat, 29 Oct 2011 12:48:58 +0000
(14:48 +0200)
committer
Michael Adam
<obnox@samba.org>
Sun, 30 Oct 2011 17:41:20 +0000
(18:41 +0100)
This must have been a typo (listing EXCLUSIVE twice).
But BATCH and EXCLUSIVE oplocks apparently share the
same break semantics with respect to leases.
source4/torture/smb2/lease.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/lease.c
b/source4/torture/smb2/lease.c
index 564394f31e28841cbcf44c67d0bef6952547a728..3d3f17d08ed6bf793e29bad81e87ff99b1606ff2 100644
(file)
--- a/
source4/torture/smb2/lease.c
+++ b/
source4/torture/smb2/lease.c
@@
-550,7
+550,7
@@
static inline uint32_t oplock(const char *op) {
case 'x':
return SMB2_OPLOCK_LEVEL_EXCLUSIVE;
case 'b':
- return SMB2_OPLOCK_LEVEL_
EXCLUSIVE
;
+ return SMB2_OPLOCK_LEVEL_
BATCH
;
default:
continue;
}