From eaccea9e2917061ae0de094d71bf3450ab00acb1 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 13 Sep 2011 13:14:41 +0200 Subject: s3:torture: there's no need to alter cli->max_xmit in order to test large writes metze --- source3/torture/torture.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'source3/torture/torture.c') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index d791684de6..ff1175de24 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -963,7 +963,7 @@ static bool run_readwritemulti(int dummy) return test; } -static bool run_readwritelarge_internal(int max_xmit_k) +static bool run_readwritelarge_internal(void) { static struct cli_state *cli1; uint16_t fnum1; @@ -979,8 +979,6 @@ static bool run_readwritelarge_internal(int max_xmit_k) cli_sockopt(cli1, sockops); memset(buf,'\0',sizeof(buf)); - cli1->max_xmit = max_xmit_k*1024; - if (signing_state == Required) { /* Horrible cheat to force multiple signed outstanding @@ -1037,8 +1035,6 @@ static bool run_readwritelarge_internal(int max_xmit_k) return False; } - cli1->max_xmit = 4*1024; - cli_smbwrite(cli1, fnum1, buf, 0, sizeof(buf), NULL); status = cli_qfileinfo_basic(cli1, fnum1, NULL, &fsize, NULL, NULL, @@ -1086,14 +1082,14 @@ static bool run_readwritelarge_internal(int max_xmit_k) static bool run_readwritelarge(int dummy) { - return run_readwritelarge_internal(128); + return run_readwritelarge_internal(); } static bool run_readwritelarge_signtest(int dummy) { bool ret; signing_state = Required; - ret = run_readwritelarge_internal(2); + ret = run_readwritelarge_internal(); signing_state = Undefined; return ret; } -- cgit