syslet: typo
[fio.git] / engines / splice.c
index f55e5c0703273357781f4af7e548ba2be629d94a..5c4411cce3bcdfdecdfe3f40a5b2e0d3530fd66a 100644 (file)
@@ -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) {
-               if (ret > 0) {
+               if (ret >= 0) {
                        io_u->resid = io_u->xfer_buflen - ret;
                        io_u->error = 0;
                        return FIO_Q_COMPLETED;