| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCHv2 xfsprogs 08/14] replace sendfile64 by equivalent sendfile |
| From: | Felix Janda <felix.janda@xxxxxxxxx> |
| Date: | Sat, 6 Aug 2016 13:03:16 +0200 |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <cover.1471107858.git.felix.janda@xxxxxxxxx> |
| References: | <cover.1471107858.git.felix.janda@xxxxxxxxx> |
| Resent-date: | Sat, 13 Aug 2016 19:24:46 +0200 |
| Resent-from: | Felix Janda <felix.janda@xxxxxxxxx> |
| Resent-message-id: | <20160813172446.GF3858@nyan> |
| Resent-to: | xfs@xxxxxxxxxxx |
Signed-off-by: Felix Janda <felix.janda@xxxxxxxxx>
---
io/sendfile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/io/sendfile.c b/io/sendfile.c
index c082acf..edd31c9 100644
--- a/io/sendfile.c
+++ b/io/sendfile.c
@@ -56,11 +56,11 @@ send_buffer(
*total = 0;
while (count > 0) {
- bytes = sendfile64(file->fd, fd, &off, bytes_remaining);
+ bytes = sendfile(file->fd, fd, &off, bytes_remaining);
if (bytes == 0)
break;
if (bytes < 0) {
- perror("sendfile64");
+ perror("sendfile");
return -1;
}
ops++;
--
2.7.3
|
| Previous by Date: | [PATCHv2 xfsprogs 07/14] replace pread64/pwrite64 by equivalent pread/pwrite, Felix Janda |
|---|---|
| Next by Date: | [PATCHv2 xfsprogs 09/14] fadvise.c: replace posix_fadvise64 by equivalent posix_fadvise, Felix Janda |
| Previous by Thread: | Re: [PATCHv2 xfsprogs 07/14] replace pread64/pwrite64 by equivalent pread/pwrite, Christoph Hellwig |
| Next by Thread: | Re: [PATCHv2 xfsprogs 08/14] replace sendfile64 by equivalent sendfile, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |