tests: fix broken deduplication check in parallels format test
commite6d3486d9a4020a65f831ea413a3cd3323fa0abd
authorDenis V. Lunev <den@openvz.org>
Mon, 18 Sep 2023 18:00:51 +0000 (18 20:00 +0200)
committerDenis V. Lunev <den@openvz.org>
Thu, 21 Sep 2023 06:47:45 +0000 (21 08:47 +0200)
tree2595df6c4d7400f3ade688adb76a3cf9f37cceb3
parente185100fec3819dd51403c0abcdc899341cc67c1
tests: fix broken deduplication check in parallels format test

Original check is broken as supposed reading from 2 different clusters
results in read from the same file offset twice. This is definitely
wrong.

We should be sure that
* the content of both clusters is correct after repair
* clusters are at the different offsets after repair
In order to check the latter we write some content into the first one
and validate that fact.

Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
tests/qemu-iotests/tests/parallels-checks
tests/qemu-iotests/tests/parallels-checks.out