mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
aef87784f9
commit
820c6bee53
3 changed files with 70 additions and 9 deletions
|
@ -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 ==="
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue