[PATCH] Fix RECVFILE with non-blocking sockets and add OEM recvfile call.

Jeremy Allison jra at samba.org
Thu May 22 09:59:52 MDT 2014

On Thu, May 22, 2014 at 02:59:09PM +0200, Stefan (metze) Metzmacher wrote:
> I'm getting EINVAL from splice if I use large io sizes, when using SMB3.
> When count is truncated to TRANSFER_BUF_SIZE (128*1024) it works fine.

OK, I'll fix up the 'standard' splice code on top of these patches
to make sure we don't go over 128k. Justin's splice changes won't
have that problem as he's using custom kernel code here.

> We should also make sure we don't get nwritten == 0 from splice,
> as that would mean we're in an endless loop.

I'll fix that and re-post a patchset. Thanks for looking
at this !


More information about the samba-technical mailing list