OSDN Git Service

tests/qemu-iotests/197: add testcase for CoR with subclusters
authorAndrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Tue, 11 Jul 2023 17:25:53 +0000 (20:25 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 30 Aug 2023 11:39:10 +0000 (07:39 -0400)
commite2f938265e0aa8486303d260f3cb13d5bb9e9d6a
tree5b4ce4e655ba97bcda60d8977eb73167e9a50560
parentfc6b211f920a68f4c9c8db91ccc35ca95fe6683a
tests/qemu-iotests/197: add testcase for CoR with subclusters

Add testcase which checks that allocations during copy-on-read are
performed on the subcluster basis when subclusters are enabled in target
image.

This testcase also triggers the following assert with previous commit
not being applied, so we check that as well:

qemu-io: ../block/io.c:1236: bdrv_co_do_copy_on_readv: Assertion `skip_bytes < pnum' failed.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230711172553.234055-4-andrey.drobyshev@virtuozzo.com>
tests/qemu-iotests/197
tests/qemu-iotests/197.out