projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move description text
[fio.git]
/
engines
/
splice.c
diff --git
a/engines/splice.c
b/engines/splice.c
index f55e5c0703273357781f4af7e548ba2be629d94a..a20f4e034eb76e807c30e046294780b61756c757 100644
(file)
--- a/
engines/splice.c
+++ b/
engines/splice.c
@@
-116,7
+116,7
@@
static int fio_spliceio_queue(struct thread_data *td, struct io_u *io_u)
ret = fsync(io_u->file->fd);
if (ret != (int) io_u->xfer_buflen) {
ret = fsync(io_u->file->fd);
if (ret != (int) io_u->xfer_buflen) {
- if (ret > 0) {
+ if (ret >
=
0) {
io_u->resid = io_u->xfer_buflen - ret;
io_u->error = 0;
return FIO_Q_COMPLETED;
io_u->resid = io_u->xfer_buflen - ret;
io_u->error = 0;
return FIO_Q_COMPLETED;
@@
-125,7
+125,7
@@
static int fio_spliceio_queue(struct thread_data *td, struct io_u *io_u)
}
if (io_u->error)
}
if (io_u->error)
- td_verror(td, io_u->error);
+ td_verror(td, io_u->error
, "xfer"
);
return FIO_Q_COMPLETED;
}
return FIO_Q_COMPLETED;
}
@@
-147,7
+147,7
@@
static int fio_spliceio_init(struct thread_data *td)
struct spliceio_data *sd = malloc(sizeof(*sd));
if (pipe(sd->pipe) < 0) {
struct spliceio_data *sd = malloc(sizeof(*sd));
if (pipe(sd->pipe) < 0) {
- td_verror(td, errno);
+ td_verror(td, errno
, "pipe"
);
free(sd);
return 1;
}
free(sd);
return 1;
}