OSDN Git Service

iotests: Add test for potentially damaging repairs
authorMax Reitz <mreitz@redhat.com>
Wed, 22 Oct 2014 12:09:43 +0000 (14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 23 Oct 2014 13:34:01 +0000 (15:34 +0200)
commit234764eed1aab56a657a161e9a0c65730442e6f8
tree4a1c36d63746748b682d17697bc9a3cbfca29b4d
parentd26e6ec052b8768ab45654dbf35d5213818a2cb8
iotests: Add test for potentially damaging repairs

There are certain cases where repairing a qcow2 image might actually
damage it further (or rather, where repairing it has in fact damaged it
further with the old qcow2 check implementation). This should not
happen, so add a test for these cases.

Furthermore, the repair function now repairs refblocks beyond the image
end by resizing the image accordingly. Add several tests for this as
well.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/108 [new file with mode: 0755]
tests/qemu-iotests/108.out [new file with mode: 0644]
tests/qemu-iotests/group