Message ID | 20250417184133.105746-18-eblake@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Make blockdev-mirror dest sparse in more cases | expand |
On Thu, Apr 17, 2025 at 01:39:10PM -0500, Eric Blake wrote: > 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> > --- > tests/qemu-iotests/194 | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
diff --git a/tests/qemu-iotests/194 b/tests/qemu-iotests/194 index c0ce82dd257..d0b9c084f5f 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...')
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> --- tests/qemu-iotests/194 | 1 + 1 file changed, 1 insertion(+)