summaryrefslogtreecommitdiffstats
path: root/tests/qemu-iotests/291
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2020-06-06 10:18:06 +0200
committerEric Blake2020-06-09 22:47:10 +0200
commit820c6bee534ec3bd61c7d14d7040ec917cc25ab2 (patch)
tree355b088b3ecef102212b8a4888d71da981ecf5f3 /tests/qemu-iotests/291
parentqcow2: QcowHeaderExtension print names for extension magics (diff)
downloadqemu-820c6bee534ec3bd61c7d14d7040ec917cc25ab2.tar.gz
qemu-820c6bee534ec3bd61c7d14d7040ec917cc25ab2.tar.xz
qemu-820c6bee534ec3bd61c7d14d7040ec917cc25ab2.zip
qcow2_format.py: dump bitmaps header extension
Add class for bitmap extension and dump its fields. Further work is to dump bitmap directory. Test new functionality inside 291 iotest. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> Message-Id: <20200606081806.23897-14-vsementsov@virtuozzo.com> [eblake: fix iotest output] Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/291')
-rwxr-xr-xtests/qemu-iotests/2914
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qemu-iotests/291 b/tests/qemu-iotests/291
index 3ca83b9cd1..e0cffc7cb1 100755
--- a/tests/qemu-iotests/291
+++ b/tests/qemu-iotests/291
@@ -62,6 +62,8 @@ $QEMU_IO -c 'w 1M 1M' -f $IMGFMT "$TEST_IMG" | _filter_qemu_io
$QEMU_IMG bitmap --disable -f $IMGFMT "$TEST_IMG" b1
$QEMU_IMG bitmap --enable -f $IMGFMT "$TEST_IMG" b2
$QEMU_IO -c 'w 2M 1M' -f $IMGFMT "$TEST_IMG" | _filter_qemu_io
+echo "Check resulting qcow2 header extensions:"
+$PYTHON qcow2.py "$TEST_IMG" dump-header-exts
echo
echo "=== Bitmap preservation not possible to non-qcow2 ==="
@@ -88,6 +90,8 @@ $QEMU_IMG bitmap --merge tmp -f $IMGFMT "$TEST_IMG" b0
$QEMU_IMG bitmap --remove --image-opts \
driver=$IMGFMT,file.driver=file,file.filename="$TEST_IMG" tmp
$QEMU_IMG info "$TEST_IMG" | _filter_img_info --format-specific
+echo "Check resulting qcow2 header extensions:"
+$PYTHON qcow2.py "$TEST_IMG" dump-header-exts
echo
echo "=== Check bitmap contents ==="