commit | 8400d9b26a4f24f3b56cc9dad02be65791b58a83 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Mar 28 11:10:09 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Mar 28 11:10:09 2007 +0200 |
tree | dbb417b0d85618f5a8176b8f12d3fa5cf44e9c73 | |
parent | 5a7c56804dafab5770797044a4f1d259fe708dfb [diff] [blame] |
Fix short IO handling for verifies as well Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c index ef63ce6..125cf6f 100644 --- a/fio.c +++ b/fio.c
@@ -342,10 +342,17 @@ put_io_u(td, io_u); break; } + io_u->xfer_buflen = io_u->resid; io_u->xfer_buf += bytes; + io_u->offset += bytes; + + if (io_u->offset == io_u->file->real_file_size) + goto sync_done; + requeue_io_u(td, &io_u); } else { +sync_done: ret = io_u_sync_complete(td, io_u); if (ret < 0) break;