diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-11-30 17:29:10 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-12-22 07:27:06 +0100 |
commit | cd24ed920ef69d063ac84ccbd8052928fe6cd0e9 (patch) | |
tree | 9b808a519010179e813486c32b180c01edc6dc9f /source3/param | |
parent | cd772e9bd8b1607a171338845e0de305497c1c07 (diff) | |
download | samba-cd24ed920ef69d063ac84ccbd8052928fe6cd0e9.tar.gz samba-cd24ed920ef69d063ac84ccbd8052928fe6cd0e9.tar.bz2 samba-cd24ed920ef69d063ac84ccbd8052928fe6cd0e9.zip |
s3-loadparm: mark a few parameters as having P_BYTES type
this fixes a problem with "max xmit = 32K" resulting in a maximum SMB
transmit size of 32 bytes, which makes for some very interesting
network traces!
This is what was causing smbtorture to consume gigabytes of memory in
the rpc.schannel test
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 1bd2733858..1310353348 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1418,7 +1418,7 @@ static struct parm_struct parm_table[] = { }, { .label = "max log size", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_GLOBAL, .offset = GLOBAL_VAR(max_log_size), .special = NULL, @@ -1502,7 +1502,7 @@ static struct parm_struct parm_table[] = { { .label = "allocation roundup size", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_LOCAL, .offset = LOCAL_VAR(iallocation_roundup_size), .special = NULL, @@ -1511,7 +1511,7 @@ static struct parm_struct parm_table[] = { }, { .label = "aio read size", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_LOCAL, .offset = LOCAL_VAR(iAioReadSize), .special = NULL, @@ -1520,7 +1520,7 @@ static struct parm_struct parm_table[] = { }, { .label = "aio write size", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_LOCAL, .offset = LOCAL_VAR(iAioWriteSize), .special = NULL, @@ -1583,7 +1583,7 @@ static struct parm_struct parm_table[] = { }, { .label = "min receivefile size", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_GLOBAL, .offset = GLOBAL_VAR(iminreceivefile), .special = NULL, @@ -1727,7 +1727,7 @@ static struct parm_struct parm_table[] = { }, { .label = "max xmit", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_GLOBAL, .offset = GLOBAL_VAR(max_xmit), .special = NULL, @@ -1865,7 +1865,7 @@ static struct parm_struct parm_table[] = { { .label = "block size", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_LOCAL, .offset = LOCAL_VAR(iBlock_size), .special = NULL, @@ -1964,7 +1964,7 @@ static struct parm_struct parm_table[] = { }, { .label = "max disk size", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_GLOBAL, .offset = GLOBAL_VAR(maxdisksize), .special = NULL, @@ -2054,7 +2054,7 @@ static struct parm_struct parm_table[] = { }, { .label = "write cache size", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_LOCAL, .offset = LOCAL_VAR(iWriteCacheSize), .special = NULL, @@ -2117,7 +2117,7 @@ static struct parm_struct parm_table[] = { }, { .label = "smb2 max read", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_GLOBAL, .offset = GLOBAL_VAR(ismb2_max_read), .special = NULL, @@ -2126,7 +2126,7 @@ static struct parm_struct parm_table[] = { }, { .label = "smb2 max write", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_GLOBAL, .offset = GLOBAL_VAR(ismb2_max_write), .special = NULL, @@ -2135,7 +2135,7 @@ static struct parm_struct parm_table[] = { }, { .label = "smb2 max trans", - .type = P_INTEGER, + .type = P_BYTES, .p_class = P_GLOBAL, .offset = GLOBAL_VAR(ismb2_max_trans), .special = NULL, |