commit | 5a7c56804dafab5770797044a4f1d259fe708dfb | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Mar 28 11:07:20 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Mar 28 11:07:20 2007 +0200 |
tree | cbbdabdfacd4a9700f67962c4bba0ba48a81eb85 | |
parent | 92c1d41f9cb4da2513ad261552f92511d69f6b8e [diff] |
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>