[Samba] sendfile

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Dec 23 02:33:04 MST 2009


On Tue, Dec 22, 2009 at 06:19:52PM -0800, Learner Study wrote:
> I understand from the samba code (3.0.25) that we use sendfile during
> client's Read operation. Is there a reason for not using the same for
> write operation? Is it to do with header processing etc.

Under Linux, I have not yet found a recvfile function. There
is splice, but at least until recently this was only usable
in multi-threaded applications which Samba is not. In
current Samba there is code to use recvfile when it is
available, and a not-used version of splice code.

Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20091223/49a01935/attachment.pgp>


More information about the samba-technical mailing list