diff options
author | Max Reitz <mreitz@redhat.com> | 2014-10-22 17:00:16 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-10-23 15:34:02 +0200 |
commit | 4b25bbc4c22cf39350b75bd250d568a4d975f7c5 (patch) | |
tree | 7bca2ee214178e729fc236713fdb3dfbead12ec1 /tests/rtl8139-test.c | |
parent | 59c9a95fd29cfb3296ee58e8a446df251d14a459 (diff) | |
download | qemu-4b25bbc4c22cf39350b75bd250d568a4d975f7c5.zip qemu-4b25bbc4c22cf39350b75bd250d568a4d975f7c5.tar.gz qemu-4b25bbc4c22cf39350b75bd250d568a4d975f7c5.tar.bz2 |
qemu-io: Respect early image end for map
bdrv_is_allocated() may report zero clusters which most probably means
the image (file) is shorter than expected. Respect this case in order to
avoid an infinite loop.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/rtl8139-test.c')
0 files changed, 0 insertions, 0 deletions