Update io engine comments
[fio.git] / engines / posixaio.c
index a56ab3a691e9251c9684c91104774981e811684e..7d9aaaf18314bffe3ea30fe211918d69e89b8095 100644 (file)
@@ -1,5 +1,7 @@
 /*
- * posix aio io engine
+ * posixaio engine
+ *
+ * IO engine that uses the posix defined aio interface.
  *
  */
 #include <stdio.h>
@@ -100,6 +102,7 @@ restart:
                        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;
@@ -153,7 +156,7 @@ static int fio_posixaio_queue(struct thread_data fio_unused *td,
 
        if (ret) {
                io_u->error = errno;
-               td_verror(td, io_u->error);
+               td_verror(td, io_u->error, "xfer");
                return FIO_Q_COMPLETED;
        }
 
@@ -193,6 +196,8 @@ static struct ioengine_ops ioengine = {
        .getevents      = fio_posixaio_getevents,
        .event          = fio_posixaio_event,
        .cleanup        = fio_posixaio_cleanup,
+       .open_file      = generic_open_file,
+       .close_file     = generic_close_file,
 };
 
 #else /* FIO_HAVE_POSIXAIO */