Handle short read at the end of file
authorJens Axboe <jens.axboe@oracle.com>
Wed, 28 Mar 2007 09:07:20 +0000 (11:07 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 28 Mar 2007 09:07:20 +0000 (11:07 +0200)
commit5a7c56804dafab5770797044a4f1d259fe708dfb
treecbbdabdfacd4a9700f67962c4bba0ba48a81eb85
parent92c1d41f9cb4da2513ad261552f92511d69f6b8e
Handle short read at the end of file

Currently we don't issue an io operation if offset + buflen
is larger than the file size, but that means we don't reach
the last bit of a file if the size isn't block size aligned.
Instead handle a short read properly. It actually cleans up
the code as well.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
io_u.c