]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
iotests: Improve iotest 194 to mirror data
authorEric Blake <eblake@redhat.com>
Fri, 9 May 2025 20:40:22 +0000 (15:40 -0500)
committerEric Blake <eblake@redhat.com>
Wed, 14 May 2025 21:50:50 +0000 (16:50 -0500)
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>

tests/qemu-iotests/194

index c0ce82dd2576b09e6f52770c0189b94928e964cb..d0b9c084f5f5572f735c238635ed47ed6fb539c8 100755 (executable)
@@ -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...')