iotests: Test qemu-img convert --salvage
commit0b1eb0ce7d734affdc181ca583d12947d17e47bf
authorMax Reitz <mreitz@redhat.com>
Tue, 7 May 2019 20:35:07 +0000 (7 22:35 +0200)
committerMax Reitz <mreitz@redhat.com>
Fri, 14 Jun 2019 13:09:27 +0000 (14 15:09 +0200)
tree5b1a230750abe1a10fdb9927948842b5577752bc
parent1adb0b5e0f7c5c4f707b1ffa98e2b15ef51ebbc5
iotests: Test qemu-img convert --salvage

This test converts a simple image to another, but blkdebug injects
block_status and read faults at some offsets.  The resulting image
should be the same as the input image, except that sectors that could
not be read have to be 0.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 20190507203508.18026-7-mreitz@redhat.com
Tested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
[mreitz: Dropped superfluous printf from _filter_offsets, as suggested
         by Vladimir; disable test for VDI and IMGOPTSSYNTAX]
Signed-off-by: Max Reitz <mreitz@redhat.com>
tests/qemu-iotests/251 [new file with mode: 0755]
tests/qemu-iotests/251.out [new file with mode: 0644]
tests/qemu-iotests/group