diff options
| author | Eric Blake | 2018-06-28 22:15:20 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-06-29 14:20:56 +0200 |
| commit | a15312b0172292273303b3690f9eb69f3c01339c (patch) | |
| tree | 1aae50e97ad958a2c70b37385d0c65897476c4af /linux-user/linux_loop.h | |
| parent | qcow: Switch get_cluster_offset to be byte-based (diff) | |
| download | qemu-a15312b0172292273303b3690f9eb69f3c01339c.tar.gz qemu-a15312b0172292273303b3690f9eb69f3c01339c.tar.xz qemu-a15312b0172292273303b3690f9eb69f3c01339c.zip | |
qcow: Switch qcow_co_readv 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 read 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 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions
