]> git.proxmox.com Git - mirror_qemu.git/commit
qcow2_format.py: separate generic functionality of structure classes
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Sat, 6 Jun 2020 08:18:01 +0000 (11:18 +0300)
committerEric Blake <eblake@redhat.com>
Tue, 9 Jun 2020 20:47:09 +0000 (15:47 -0500)
commit0903e3b3714df385931e4ff844e4aff713aa2411
tree7e7233f25d3b5d96d93ff46f81686e9f1a0d5e6f
parent5432a0db528cde9f58d6a843105a66c79b523a73
qcow2_format.py: separate generic functionality of structure classes

We are going to introduce more Qcow2 structure types, defined like
QcowHeader. Move generic functionality into base class to be reused for
further structure classes.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Message-Id: <20200606081806.23897-9-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qemu-iotests/qcow2_format.py