commit | 59c9a95fd29cfb3296ee58e8a446df251d14a459 | [log] [tgz] |
---|---|---|
author | Max Reitz <mreitz@redhat.com> | Wed Oct 22 17:00:15 2014 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Thu Oct 23 15:34:02 2014 +0200 |
tree | 9c517349fef109279af42b95d66ae6c699ae3941 | |
parent | 7f75a07d50710e7f1371c4b248e0550549f77ead [diff] |
block: Respect underlying file's EOF When falling through to the underlying file in bdrv_co_get_block_status(), if it returns that the query offset is beyond the file end (by setting *pnum to 0), return the range to be zero and do not let the number of sectors for which information could be obtained be overwritten. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>