diff options
author | Eric Blake <eblake@redhat.com> | 2025-05-09 15:40:22 -0500 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2025-05-14 16:50:50 -0500 |
commit | eb89627899bb84148d272394e885725eff456ae9 (patch) | |
tree | 1dedce8d3ad61248f0b03da7c1c1878590c86cd7 | |
parent | 52726096707c5c8b90597c445de897fa64d56e73 (diff) | |
download | qemu-eb89627899bb84148d272394e885725eff456ae9.zip qemu-eb89627899bb84148d272394e885725eff456ae9.tar.gz qemu-eb89627899bb84148d272394e885725eff456ae9.tar.bz2 |
iotests: Improve iotest 194 to mirror data
Mirroring a completely sparse image to a sparse destination should be
practically instantaneous. It isn't yet, but the test will be more
realistic if it has some non-zero to mirror as well as the holes.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20250509204341.3553601-20-eblake@redhat.com>
-rwxr-xr-x | tests/qemu-iotests/194 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qemu-iotests/194 b/tests/qemu-iotests/194 index c0ce82d..d0b9c08 100755 --- a/tests/qemu-iotests/194 +++ b/tests/qemu-iotests/194 @@ -34,6 +34,7 @@ with iotests.FilePath('source.img') as source_img_path, \ img_size = '1G' iotests.qemu_img_create('-f', iotests.imgfmt, source_img_path, img_size) + iotests.qemu_io('-f', iotests.imgfmt, '-c', 'write 512M 1M', source_img_path) iotests.qemu_img_create('-f', iotests.imgfmt, dest_img_path, img_size) iotests.log('Launching VMs...') |