OSDN Git Service

iotests: add test for changing mirror's copy_mode
authorFiona Ebner <f.ebner@proxmox.com>
Tue, 31 Oct 2023 13:54:31 +0000 (14:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 31 Oct 2023 18:46:51 +0000 (19:46 +0100)
commit900e7d413d630ebd3f5d64bae0e6249621ec0c7f
treee3b58e674c1d0071e34bc44872ac656990233bc0
parent76cb2f2491abcf191439ea5052999afed514b3da
iotests: add test for changing mirror's copy_mode

One part of the test is using a throttled source to ensure that there
are no obvious issues when changing the copy_mode while there are
ongoing requests (source and target images are compared at the very
end).

The other part of the test is using a throttled target to ensure that
the change to active mode actually happened. This is done by hitting
the throttling limit, issuing a synchronous write and then immediately
verifying the target side. QSD is used, because otherwise, a
synchronous write would hang there.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
Message-ID: <20231031135431.393137-11-f.ebner@proxmox.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/tests/mirror-change-copy-mode [new file with mode: 0755]
tests/qemu-iotests/tests/mirror-change-copy-mode.out [new file with mode: 0644]