summaryrefslogtreecommitdiff
path: root/qemu-io-cmds.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-10-22 17:00:15 +0200
committerKevin Wolf <kwolf@redhat.com>2014-10-23 15:34:02 +0200
commit59c9a95fd29cfb3296ee58e8a446df251d14a459 (patch)
tree9c517349fef109279af42b95d66ae6c699ae3941 /qemu-io-cmds.c
parent7f75a07d50710e7f1371c4b248e0550549f77ead (diff)
downloadqemu-59c9a95fd29cfb3296ee58e8a446df251d14a459.tar.gz
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>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions