diff options
author | Jeremy Allison <jra@samba.org> | 2010-12-14 13:36:08 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-12-15 02:24:08 +0100 |
commit | a8eed184a0f9e5fdeec9a40d8ffbc2f3d56beb74 (patch) | |
tree | e530aa4d3887683dd5e84b25d1735193122ffbab /source3/smbd/reply.c | |
parent | e071fd711dee0a5b03df53979b355f2e5a2e58b0 (diff) | |
download | samba-a8eed184a0f9e5fdeec9a40d8ffbc2f3d56beb74.tar.gz samba-a8eed184a0f9e5fdeec9a40d8ffbc2f3d56beb74.tar.bz2 samba-a8eed184a0f9e5fdeec9a40d8ffbc2f3d56beb74.zip |
Implement "use sendfile = yes" for SMB2. (cherry picked from commit 95cb7adcd03a1abbd0af395b6c96dd8e0eebd3d1)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Dec 15 02:24:08 CET 2010 on sn-devel-104
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r-- | source3/smbd/reply.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 9601f5353a..26badc4ebf 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2804,8 +2804,7 @@ static void fail_readraw(void) Fake (read/write) sendfile. Returns -1 on read or write fail. ****************************************************************************/ -static ssize_t fake_sendfile(files_struct *fsp, SMB_OFF_T startpos, - size_t nread) +ssize_t fake_sendfile(files_struct *fsp, SMB_OFF_T startpos, size_t nread) { size_t bufsize; size_t tosend = nread; @@ -2869,7 +2868,7 @@ static ssize_t fake_sendfile(files_struct *fsp, SMB_OFF_T startpos, requested. Fill with zeros (all we can do). ****************************************************************************/ -static void sendfile_short_send(files_struct *fsp, +void sendfile_short_send(files_struct *fsp, ssize_t nread, size_t headersize, size_t smb_maxcnt) |