smbmount, max_xmit and block size negotiation (fwd)

Dag Wieers dag at wieers.com
Fri Nov 26 02:02:00 GMT 2004


Hi,

After subscribing to the samba ml, sending the mail below and reading 
other posts, I noticed I may have send it to the wrong audience.

Maybe someone on samba-technical can guide me regarding the issue.

Thanks in advance,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]

---------- Forwarded message ----------
From: Dag Wieers <dag at wieers.com>
To: samba at lists.samba.org
Date: Thu, 25 Nov 2004 07:42:40 +0100 (CET)
Subject: [Samba] smbmount, max_xmit and block size negotiation

Hi,

I am wondering what the right way is to have smbmount negotiate a 
block size value of more than 4kB with the Samba server.

I cannot seem to let smbmount understand the value I want it to use. I 
assumed first it gets this from smb.conf, and by adding DEBUG() info to 
the code and printing c->max_xmit, that's what it is using in smbmount.c.

I also tried influencing the number using the sockopt smbmount option, but 
with no effect. The smbd itself is using max xmit of either 65535 or 
32384. Neither seem to have an effect on the negotiation. The resulting 
connection (from Linux to Linux) seems to always use 4kB blocks.

I'm debugging this with:

	tethereal -c 100 -i bond0 port 445

How can I debug the actual negotiating process ? Wouldn't it be useful to 
have ethereal display this information, or is this already visible somehow ?

Any help would be very welcome. If smbmount is not able to use anything 
other than 4kB blocks, would a patch to add a max_xmit option to smbmount 
be accepted ?

PS I noticed that the 2.0.2 smbmount option had a -m switch for defining 
max_xmit, but in 2.0.3 it was removed. I'm using 3.0.9 myself.

Thanks in advance,
--   dag wieers,  dag at wieers.com,  http://dag.wieers.com/   --
[Any errors in spelling, tact or fact are transmission errors]



More information about the samba-technical mailing list