mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:torture: raw.read fix large reads against windows
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
df618e33ac
commit
c9066b057a
@ -529,7 +529,7 @@ static bool test_readx(struct torture_context *tctx, struct smbcli_state *cli)
|
||||
printf("SAMBA: large read extension\n");
|
||||
CHECK_VALUE(io.readx.out.nread, 80000);
|
||||
} else {
|
||||
CHECK_VALUE(io.readx.out.nread, 0);
|
||||
CHECK_VALUE(io.readx.out.nread, 0x10000);
|
||||
}
|
||||
CHECK_BUFFER(buf, seed, io.readx.out.nread);
|
||||
|
||||
@ -569,13 +569,7 @@ static bool test_readx(struct torture_context *tctx, struct smbcli_state *cli)
|
||||
io.readx.in.maxcnt = 0x10000;
|
||||
status = smb_raw_read(cli->tree, &io);
|
||||
CHECK_STATUS(status, NT_STATUS_OK);
|
||||
if (torture_setting_bool(tctx, "samba3", false) ||
|
||||
torture_setting_bool(tctx, "samba4", false)) {
|
||||
printf("SAMBA: large read extension\n");
|
||||
CHECK_VALUE(io.readx.out.nread, 0x10000);
|
||||
} else {
|
||||
CHECK_VALUE(io.readx.out.nread, 0);
|
||||
}
|
||||
CHECK_VALUE(io.readx.out.nread, 0x10000);
|
||||
|
||||
io.readx.in.maxcnt = 0x10001;
|
||||
status = smb_raw_read(cli->tree, &io);
|
||||
@ -585,7 +579,7 @@ static bool test_readx(struct torture_context *tctx, struct smbcli_state *cli)
|
||||
printf("SAMBA: large read extension\n");
|
||||
CHECK_VALUE(io.readx.out.nread, 0x10001);
|
||||
} else {
|
||||
CHECK_VALUE(io.readx.out.nread, 0);
|
||||
CHECK_VALUE(io.readx.out.nread, 0x10000);
|
||||
}
|
||||
} else {
|
||||
printf("Server does not support the CAP_LARGE_READX extension\n");
|
||||
|
Loading…
Reference in New Issue
Block a user