diff options
author | Jeremy Allison <jra@samba.org> | 2008-01-10 16:36:05 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-01-10 16:36:05 -0800 |
commit | 6a8fad084cda2b68ced5aaa8c6ef6a03c7350c57 (patch) | |
tree | 90f31e435fac5c882591305e7ff1ff4377eec266 /source3/modules/vfs_default.c | |
parent | f33f4ef4a24fcbf09eeba0d51e7db74e9b13b432 (diff) | |
parent | fef9cf00e1e110ff5872f1c368d080fe4f7939d6 (diff) | |
download | samba-6a8fad084cda2b68ced5aaa8c6ef6a03c7350c57.tar.gz samba-6a8fad084cda2b68ced5aaa8c6ef6a03c7350c57.tar.bz2 samba-6a8fad084cda2b68ced5aaa8c6ef6a03c7350c57.zip |
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 767e0164adf8803df50b0b7bd8e81d25af72bb78)
Diffstat (limited to 'source3/modules/vfs_default.c')
-rw-r--r-- | source3/modules/vfs_default.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index e57d24cb1a..e21136ccee 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -337,28 +337,27 @@ static SMB_OFF_T vfswrap_lseek(vfs_handle_struct *handle, files_struct *fsp, SMB return result; } -static ssize_t vfswrap_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fsp, int fromfd, const DATA_BLOB *hdr, +static ssize_t vfswrap_sendfile(vfs_handle_struct *handle, int tofd, files_struct *fromfsp, const DATA_BLOB *hdr, SMB_OFF_T offset, size_t n) { ssize_t result; START_PROFILE_BYTES(syscall_sendfile, n); - result = sys_sendfile(tofd, fromfd, hdr, offset, n); + result = sys_sendfile(tofd, fromfsp->fh->fd, hdr, offset, n); END_PROFILE(syscall_sendfile); return result; } static ssize_t vfswrap_recvfile(vfs_handle_struct *handle, int fromfd, - files_struct *fsp, - int tofd, + files_struct *tofsp, SMB_OFF_T offset, size_t n) { ssize_t result; START_PROFILE_BYTES(syscall_recvfile, n); - result = sys_recvfile(fromfd, tofd, offset, n); + result = sys_recvfile(fromfd, tofsp->fh->fd, offset, n); END_PROFILE(syscall_recvfile); return result; } |