summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-13 13:14:41 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-13 18:12:22 +0200
commiteaccea9e2917061ae0de094d71bf3450ab00acb1 (patch)
treea93552edb42770910c6d1f52150a17e97e4ac30c /source3
parent80d2c2b00d2b8b7a5cb27ba60477cd8b994a869f (diff)
downloadsamba-eaccea9e2917061ae0de094d71bf3450ab00acb1.tar.gz
samba-eaccea9e2917061ae0de094d71bf3450ab00acb1.tar.bz2
samba-eaccea9e2917061ae0de094d71bf3450ab00acb1.zip
s3:torture: there's no need to alter cli->max_xmit in order to test large writes
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/torture.c10
1 files changed, 3 insertions, 7 deletions
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;
}