summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-12-14 13:36:08 -0800
committerJeremy Allison <jra@samba.org>2010-12-15 02:24:08 +0100
commita8eed184a0f9e5fdeec9a40d8ffbc2f3d56beb74 (patch)
treee530aa4d3887683dd5e84b25d1735193122ffbab /source3/include
parente071fd711dee0a5b03df53979b355f2e5a2e58b0 (diff)
downloadsamba-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/include')
-rw-r--r--source3/include/proto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 2ba2153258..0f02dfbecf 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -5272,6 +5272,11 @@ NTSTATUS unlink_internals(connection_struct *conn, struct smb_request *req,
uint32 dirtype, struct smb_filename *smb_fname,
bool has_wild);
void reply_unlink(struct smb_request *req);
+ssize_t fake_sendfile(files_struct *fsp, SMB_OFF_T startpos, size_t nread);
+void sendfile_short_send(files_struct *fsp,
+ ssize_t nread,
+ size_t headersize,
+ size_t smb_maxcnt);
void reply_readbraw(struct smb_request *req);
void reply_lockread(struct smb_request *req);
void reply_read(struct smb_request *req);