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)
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>

No differences found