git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28eeb4a
)
UNFINISHED s4:torture:smb2:durable-v2: check whether the share is continuously-available
author
Michael Adam
<obnox@samba.org>
Thu, 1 Mar 2012 01:00:47 +0000
(
02:00
+0100)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 10 May 2012 16:46:52 +0000
(18:46 +0200)
source4/torture/smb2/durable_v2_open.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/durable_v2_open.c
b/source4/torture/smb2/durable_v2_open.c
index b69edc6109ca3d35a97c4bb9fd5153ef4b66c896..c855a1cec4848d0fba21884fd2ca5a9e48a6930c 100644
(file)
--- a/
source4/torture/smb2/durable_v2_open.c
+++ b/
source4/torture/smb2/durable_v2_open.c
@@
-640,12
+640,15
@@
bool test_persistent_open_oplock(struct torture_context *tctx,
char fname[256];
bool ret = true;
int i;
+ bool share_is_ca;
/* Choose a random name in case the state is left a little funky. */
snprintf(fname, 256, "persistent_open_oplock_%s.dat", generate_random_str(tctx, 8));
smb2_util_unlink(tree, fname);
+ share_is_ca = tree->capabilities & SMB2_SHARE_CAP_CONTINUOUS_AVAILABILITY;
+
/* test various oplock levels with durable open */
for (i = 0; i < NUM_OPLOCK_OPEN_TESTS; i++) {