[PATCH] Fix for bug #9706 - Parameter is incorrect on Android

Jeremy Allison jra at samba.org
Thu Mar 14 10:10:20 MDT 2013


On Thu, Mar 14, 2013 at 04:10:22PM +1100, Andrew Bartlett wrote:
> 
> The reason I would like it removed it that then the client side, not
> needing to trigger/not trigger the magic 'samba' detection, totally
> controls if the server thinks large reads/writes are acceptable.

That's exactly as it should be.

Our server *always* thinks large reads are acceptable, that's
how it's coded.

It's completely up to the client to determine whether it wishes
to ask for them or not.

> Otherwise, how does your test show we behave correctly for clients that
> don't advertise this capability, but do (wrongly) ask for a large
> read?  

The only "wrong" way to ask for a large read is to set the upper
bytes to 0xFFFF and set CAP_LARGE_READX. My test covers that
case, and the patchset also fixes the server to behave the correct
way in response (i.e. to explicitly ignore the upper bytes when
they're set to 0xFFFF, as the tech note in the spec says).

Jeremy.


More information about the samba-technical mailing list