diff options
| author | Eric Blake | 2018-06-28 22:15:19 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-06-29 14:20:56 +0200 |
| commit | 787993a5435289e90479f80f81681c804a9d22ce (patch) | |
| tree | e2d8f7f6de6a1afa0d793775eade86b56c5a3ee8 /linux-user/linux_loop.h | |
| parent | parallels: Switch to byte-based calls (diff) | |
| download | qemu-787993a5435289e90479f80f81681c804a9d22ce.tar.gz qemu-787993a5435289e90479f80f81681c804a9d22ce.tar.xz qemu-787993a5435289e90479f80f81681c804a9d22ce.zip | |
qcow: Switch get_cluster_offset to be byte-based
We are gradually moving away from sector-based interfaces, towards
byte-based. Make the change for the internal helper function
get_cluster_offset(), by changing n_start and n_end to be byte
offsets rather than sector indices within the cluster being
allocated. However, assert that these values are still
sector-aligned (at least qcrypto_block_encrypt() still wants that).
For now we get that alignment for free because we still use
sector-based driver callbacks.
A later patch will then switch the qcow driver as a whole over
to byte-based operation; but will still leave things at sector
alignments as it is not worth auditing the qcow image format
to worry about sub-sector requests.
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
