diff options
| author | Eric Blake <eblake@redhat.com> | 2018-06-28 15:15:21 -0500 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2018-06-29 14:20:56 +0200 |
| commit | d1326a786d471840b9055af53a7aa57c2e6d858c (patch) | |
| tree | ca1d61c6e5801570ba153f4e9add825d70a7e3f8 /scripts/qapi/types.py | |
| parent | a15312b0172292273303b3690f9eb69f3c01339c (diff) | |
| download | focaccia-qemu-d1326a786d471840b9055af53a7aa57c2e6d858c.tar.gz focaccia-qemu-d1326a786d471840b9055af53a7aa57c2e6d858c.zip | |
qcow: Switch qcow_co_writev to byte-based calls
We are gradually moving away from sector-based interfaces, towards byte-based. Make the change for the internals of the qcow driver write function, by iterating over offset/bytes instead of sector_num/nb_sectors, and with a rename of index_in_cluster and repurposing of n to track bytes instead of sectors. A later patch will then switch the qcow driver as a whole over to byte-based operation. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi/types.py')
0 files changed, 0 insertions, 0 deletions