[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v13 09/11] qcow2_format.py: collect fields to dump in JSON fo
From: |
Vladimir Sementsov-Ogievskiy |
Subject: |
Re: [PATCH v13 09/11] qcow2_format.py: collect fields to dump in JSON format |
Date: |
Fri, 7 Aug 2020 09:30:29 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
06.08.2020 22:35, Andrey Shinkevich wrote:
As __dict__ is being extended with class members we do not want to
print, add the to_dict() method to classes that returns a dictionary
to_json() ... that returns a json-dumpable object
with desired fields and their values. Extend it in subclass when
necessary to print the final dictionary in the JSON output which
follows.
Suggested-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
--
Best regards,
Vladimir
- [PATCH v13 00/11] iotests: Dump QCOW2 dirty bitmaps metadata, Andrey Shinkevich, 2020/08/06
- [PATCH v13 01/11] iotests: add test for QCOW2 header dump, Andrey Shinkevich, 2020/08/06
- [PATCH v13 03/11] qcow2_format.py: change Qcow2BitmapExt initialization method, Andrey Shinkevich, 2020/08/06
- [PATCH v13 05/11] qcow2_format.py: Dump bitmap directory information, Andrey Shinkevich, 2020/08/06
- [PATCH v13 07/11] qcow2_format.py: Dump bitmap table serialized entries, Andrey Shinkevich, 2020/08/06
- [PATCH v13 10/11] qcow2_format.py: support dumping metadata in JSON format, Andrey Shinkevich, 2020/08/06
- [PATCH v13 11/11] iotests: dump QCOW2 header in JSON in #303, Andrey Shinkevich, 2020/08/06
- [PATCH v13 08/11] qcow2.py: Introduce '-j' key to dump in JSON format, Andrey Shinkevich, 2020/08/06
- [PATCH v13 04/11] qcow2_format.py: dump bitmap flags in human readable way., Andrey Shinkevich, 2020/08/06