]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/qemu-iotest: fix iotest 024 with qed images
authorAlberto Garcia <berto@igalia.com>
Wed, 12 Nov 2025 17:09:57 +0000 (18:09 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 13 Nov 2025 22:43:21 +0000 (16:43 -0600)
Use 'qemu-io -c map' instead of 'qemu-img map' to get an output that
works with both image types.

Cc: qemu-stable <qemu-stable@nongnu.org>
Fixes: 909852ba6b4a ("qemu-img rebase: don't exceed IO_BUF_SIZE in one operation")
Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-ID: <20251112170959.700840-1-berto@igalia.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/024
tests/qemu-iotests/024.out

index 021169b4a124ac7cdbd92489a9aed13b0c919a45..10be2bd8452627342358730b7e72d5fd08b84feb 100755 (executable)
@@ -359,7 +359,7 @@ $QEMU_IO "$OVERLAY" -c "read -P 0x00  0 1M" | _filter_qemu_io
 $QEMU_IO "$OVERLAY" -c "read -P 0xff 1M 2M" | _filter_qemu_io
 $QEMU_IO "$OVERLAY" -c "read -P 0x00 3M 1M" | _filter_qemu_io
 
-$QEMU_IMG map "$OVERLAY" | _filter_qemu_img_map
+$QEMU_IO -c map "$OVERLAY" | _filter_qemu_io
 
 echo
 
index 1b7522ba71a43cafb1e1b6de743fc93fd5b3a4f8..da8fedc08b6853b996282f9b0e1c5b9920b223d1 100644 (file)
@@ -266,7 +266,6 @@ read 2097152/2097152 bytes at offset 1048576
 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
 read 1048576/1048576 bytes at offset 3145728
 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
-Offset          Length          File
-0               0x400000        TEST_DIR/subdir/t.IMGFMT
+4 MiB (0x400000) bytes     allocated at offset 0 bytes (0x0)
 
 *** done