On 6/1/20 8:48 AM, Andrey Shinkevich wrote:
Represent QCOW2 metadata dumping with qcow2.py script in JSON format

{
     "QCOW2_header_extensions": [
         {
             "Header_extension": "Feature table",
             "magic": "0x6803f857",
             "length": 192,
             "data_str": "<binary>"
         },
         {
             "Header_extension": "Bitmaps",
             "magic": "0x23852875",
             "length": 24,
             "data": {
                 "nb_bitmaps": 2,
                 "reserved32": 0,

Lengthy, but for a debug tool that's sometimes what you need.

Suggested-by: Vladimir Sementsov-Ogievskiy <vsement...@virtuozzo.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkev...@virtuozzo.com>
---
  tests/qemu-iotests/qcow2.py | 108 ++++++++++++++++++++++++++++++++++++++++++--
  1 file changed, 105 insertions(+), 3 deletions(-)


My python is not the strongest, but nothing jumped out at me, and the end results look good.

Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to