large writes and reads ...

Jeremy Allison jra at samba.org
Fri Oct 15 18:00:19 GMT 2004


On Fri, Oct 15, 2004 at 11:30:54AM -0700, Richard Sharpe wrote:
> Hi,
> 
> Well, it seems that both reply_read_and_X and reply_write_and_X in
> smbd/reply.c for the current Samba 3 code ignores large reads and writes.
> 
> That is, they both ignore the Max Count High field for reads and the Data
> Length High field for writes if the WCT is not 14 for each of these.
> 
> Indeed, reply_read_and_X ignores the Max Count High field altogether, as
> all it does is:
> 
>         size_t smb_maxcnt = SVAL(inbuf,smb_vwv5);
> 
> and does not add in the high field under any circumstances, even though
> Samba claims to support Large Read&X in the capabilities field of the
> NegProt response.
> 
> The code in reply_write_and_X only pays attention to the Lenght High Field
> if the WCT is 14, which seems just wrong ...

Are you sure ? There were some bugs in the spec here. Don't go by what
the spec says, test it in the Samba4 test suite against W2K3 first...

Jeremy.


More information about the samba-technical mailing list