summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVishvananda Ishaya2013-01-24 19:02:08 +0100
committerStefan Hajnoczi2013-02-01 14:58:28 +0100
commit63ba17d39f1a8d262b31ea6a07dd3eb45d5a41e2 (patch)
tree2c1257345ddaf24f7d1b4155dd4140fd9ac02460 /tests
parentqemu-iotests: Add regression test for b7ab0fea (diff)
downloadqemu-63ba17d39f1a8d262b31ea6a07dd3eb45d5a41e2.tar.gz
qemu-63ba17d39f1a8d262b31ea6a07dd3eb45d5a41e2.tar.xz
qemu-63ba17d39f1a8d262b31ea6a07dd3eb45d5a41e2.zip
block: Fix is_allocated_above with resized files
In an image chain, if the base image is smaller than the current image, we need to make sure to use the current images count of unallocated blocks once we get to the end of the base image. Without this change the code will return 0 blocks when it gets to the end of the base image and mirror_run will fail its assertion. Signed-off-by: Vishvananda Ishaya <vishvananda@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions