Several fixes to our use of splice
authorVolker Lendecke <vl@samba.org>
Wed, 7 Jan 2009 10:39:34 +0000 (10:39 +0000)
committerVolker Lendecke <vl@samba.org>
Wed, 7 Jan 2009 11:04:44 +0000 (12:04 +0100)
commite1459a237948c2c9b7da94e4ba0acc79b1cd8eca
tree18771d243737a472ecb6ff603c8e360c3fb2ea12
parent59f8c1d98a53b01a32883da0662ce33cadd45419
Several fixes to our use of splice

The splice manpage explicitly requires loff_t as offset. Copy "offset" there.
Probably not required, but I wanted to make sure it's as required.

Splice blocks with large buffers. For me it worked with 16k and blocked with
32k and beyond. It would be nice to see a clarification in the manpage of
splice for this behaviour.

Splice if used with an offset increments the offset. From the manpage this was
at least not entirely obvious :-)

I haven't yet activated this (try_splice_call ist still false by default), it
needs more testing.

Volker
source3/lib/recvfile.c