From: Michael Adam Date: Thu, 1 Mar 2012 01:00:47 +0000 (+0100) Subject: UNFINISHED s4:torture:smb2:durable-v2: check whether the share is continuously-available X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=a4f9dfd90ead60c9271969ea5b742f4be6a45d22 UNFINISHED s4:torture:smb2:durable-v2: check whether the share is continuously-available --- diff --git a/source4/torture/smb2/durable_v2_open.c b/source4/torture/smb2/durable_v2_open.c index b69edc6109ca..c855a1cec484 100644 --- 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++) {