]> git.ipfire.org Git - thirdparty/qemu.git/commit
iotests: Add out-of-image check test for parallels format
authorAlexander Ivanov <alexander.ivanov@virtuozzo.com>
Sat, 1 Jul 2023 10:11:17 +0000 (12:11 +0200)
committerDenis V. Lunev <den@openvz.org>
Wed, 6 Sep 2023 15:36:49 +0000 (17:36 +0200)
commitab8e1f48c22cd5f9a9391d8d65451b7fc183d23d
tree67e8f7529a88a43420a3d5467b10f463380dd2c5
parentc89d4362dc01a60831d6a69affa220573fa9b029
iotests: Add out-of-image check test for parallels format

Fill the image with a pattern to generate entries in the BAT, set the first
BAT entry outside the image, try to read the corrupted image. At the image
opening it should be repaired, check for zeroes in the first cluster.

Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Denis V. Lunev <den@openvz.org>
tests/qemu-iotests/tests/parallels-checks [new file with mode: 0755]
tests/qemu-iotests/tests/parallels-checks.out [new file with mode: 0644]