From: Tim Prouty Date: Tue, 1 Dec 2009 00:43:00 +0000 (-0800) Subject: s4 torture: Change oplock to use passthrough for exclusive3/batch11 X-Git-Tag: samba-4.0.0alpha10~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e8b6c5992494e1177cd98e47d96498a259b9056;p=thirdparty%2Fsamba.git s4 torture: Change oplock to use passthrough for exclusive3/batch11 In light of the INVALID_LEVEL that is seen for RAW_SFILEINFO_END_OF_FILE_INFO requests on a path, I'm changing these back to using the passthrough RAW_SFILEINFO_END_OF_FILE_INFORMATION to test the oplock break behavior as originally intended --- diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c index 0ebbb38ae46..283fed2252f 100644 --- a/source4/torture/raw/oplock.c +++ b/source4/torture/raw/oplock.c @@ -463,7 +463,7 @@ static bool test_raw_oplock_exclusive3(struct torture_context *tctx, struct smbc torture_comment(tctx, "setpathinfo EOF should trigger a break to none\n"); ZERO_STRUCT(sfi); - sfi.generic.level = RAW_SFILEINFO_END_OF_FILE_INFO; + sfi.generic.level = RAW_SFILEINFO_END_OF_FILE_INFORMATION; sfi.generic.in.file.path = fname; sfi.end_of_file_info.in.size = 100; @@ -1530,7 +1530,7 @@ static bool test_raw_oplock_batch11(struct torture_context *tctx, struct smbcli_ CHECK_VAL(io.ntcreatex.out.oplock_level, BATCH_OPLOCK_RETURN); ZERO_STRUCT(sfi); - sfi.generic.level = RAW_SFILEINFO_END_OF_FILE_INFO; + sfi.generic.level = RAW_SFILEINFO_END_OF_FILE_INFORMATION; sfi.generic.in.file.path = fname; sfi.end_of_file_info.in.size = 100;