samba does sendfile, but why no receivefile?

jason jason at
Tue Dec 16 18:24:13 GMT 2003

Hi all:

Samba can use sendfile to improve the performance of READ, but it does not
have receivefile to improve the performance of WRITE. What is the reason?

I just find linux kernel function:
int tcp_read_sock(struct sock *sk, read_descriptor_t *desc,
    sk_read_actor_t recv_actor)

which suppose is the conterpart of sendfile(). But it seems almost nobody
use it to do something.


More information about the samba-technical mailing list