s4 torture: Change oplock to use passthrough for exclusive3/batch11
authorTim Prouty <tprouty@samba.org>
Tue, 1 Dec 2009 00:43:00 +0000 (16:43 -0800)
committerTim Prouty <tprouty@samba.org>
Tue, 1 Dec 2009 19:12:51 +0000 (11:12 -0800)
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

source4/torture/raw/oplock.c

index 0ebbb38ae46f984be7cb48f186eb230c4bb0f649..283fed2252f694e6a5bccf66a265c75cf199ac18 100644 (file)
@@ -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;