[PATCH][CIFS] Workaround MacOS server problem with SMB2.1 write response

Jeremy Allison jra at samba.org
Thu Aug 14 15:21:50 MDT 2014

On Thu, Aug 14, 2014 at 04:15:21PM -0500, Steve French wrote:
> It does bug me that the server would send
> arbitrary amount of junk since it can slow
> down the client.

Well yes, it's definitely a server problem,
but there's nothing you can do about it unless
you decide you won't talk to servers that do
that :-).

> I looked at the printk ratelimit stuff but
> it looked like it was not worth the trouble
> to avoid the log floods.
> Perhaps just log if the length is off by
> more than 3? So if some server is
> off by more than the Mac write response
> we can tell them.  Is it even worth the
> trouble to ratelimit the log message if
> we don't know of any server's that are off
> by that much.

More than 3 sounds good to me :-).

More information about the samba-technical mailing list