One step closer to group reporting
[fio.git] / engines / posixaio.c
index a56ab3a691e9251c9684c91104774981e811684e..10340571af57fa79f2621027f937bcb424d6b554 100644 (file)
@@ -100,6 +100,7 @@ restart:
                        default:
                                io_u->error = err;
                        case ECANCELED:
                        default:
                                io_u->error = err;
                        case ECANCELED:
+                               io_u->resid = io_u->xfer_buflen;
                        case 0:
                                pd->aio_events[r++] = io_u;
                                io_u->seen = 1;
                        case 0:
                                pd->aio_events[r++] = io_u;
                                io_u->seen = 1;
@@ -153,7 +154,7 @@ static int fio_posixaio_queue(struct thread_data fio_unused *td,
 
        if (ret) {
                io_u->error = errno;
 
        if (ret) {
                io_u->error = errno;
-               td_verror(td, io_u->error);
+               td_verror(td, io_u->error, "xfer");
                return FIO_Q_COMPLETED;
        }
 
                return FIO_Q_COMPLETED;
        }