diff options
author | Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> | 2020-08-06 22:35:49 +0300 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2020-08-21 08:56:09 -0500 |
commit | 991a02ca7f886fb7935d8d64e50ffe72af281e7c (patch) | |
tree | a961ce6a4ee879cb4ed01266d4a6f0316e4e85b3 /accel | |
parent | 4539b3645bd5090873e2b01ea2d26899ac4c8682 (diff) |
qcow2_format.py: change Qcow2BitmapExt initialization method
There are two ways to initialize a class derived from Qcow2Struct:
1. Pass a block of binary data to the constructor.
2. Pass the file descriptor to allow reading the file from constructor.
Let's change the Qcow2BitmapExt initialization method from 1 to 2 to
support a scattered reading in the initialization chain.
The implementation comes with the patch that 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>
Message-Id: <1596742557-320265-4-git-send-email-andrey.shinkevich@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'accel')
0 files changed, 0 insertions, 0 deletions