diff options
author | Jeremy Allison <jra@samba.org> | 2002-09-17 19:48:19 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-09-17 19:48:19 +0000 |
commit | 9bab1d0c1a51a7532da0c55a59cf5a91b8ab6a3d (patch) | |
tree | c6dbbe5495a7d3245be2a395383847afb654943d /source3/smbd/vfs-wrap.c | |
parent | b33681fc0b8ef7b9fa91c154f7c3117afafa349e (diff) | |
download | samba-9bab1d0c1a51a7532da0c55a59cf5a91b8ab6a3d.tar.gz samba-9bab1d0c1a51a7532da0c55a59cf5a91b8ab6a3d.tar.bz2 samba-9bab1d0c1a51a7532da0c55a59cf5a91b8ab6a3d.zip |
Actually use sendfile if selected.
Jeremy.
(This used to be commit 5881f0a22633ed9fb73e6cd788d0751c4db6cd32)
Diffstat (limited to 'source3/smbd/vfs-wrap.c')
-rw-r--r-- | source3/smbd/vfs-wrap.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/smbd/vfs-wrap.c b/source3/smbd/vfs-wrap.c index 27bb1f42f3..bae304096c 100644 --- a/source3/smbd/vfs-wrap.c +++ b/source3/smbd/vfs-wrap.c @@ -192,17 +192,16 @@ SMB_OFF_T vfswrap_lseek(files_struct *fsp, int filedes, SMB_OFF_T offset, int wh return result; } -#if 0 /* JRATEST */ -ssize_t vfswrap_sendfile(int tofd, struct files_struct *fsp, int fromfd, DATA_BLOB *hdr, SMB_OFF_T offset, size_t n) +ssize_t vfswrap_sendfile(int tofd, struct files_struct *fsp, int fromfd, const DATA_BLOB *hdr, + SMB_OFF_T offset, size_t n) { ssize_t result; START_PROFILE_BYTES(syscall_sendfile, n); - result = sys_sendfile(outfd, fsp, infd, hdr, offset, n); + result = sys_sendfile(tofd, fromfd, hdr, offset, n); END_PROFILE(syscall_sendfile); return result; } -#endif int vfswrap_rename(connection_struct *conn, const char *old, const char *new) { |