diff options
author | 2017-07-07 07:44:49 -0500 | |
---|---|---|
committer | 2017-07-10 13:18:06 +0200 | |
commit | 782d97efec66d743f87f28f1d040cdfacc380b1e (patch) | |
tree | 07f7ec6024e1d63e793341a2f90fa641d99b7ad9 /scripts/qapi-commands.py | |
parent | mirror: Update signature of mirror_clip_sectors() (diff) | |
download | qemu-782d97efec66d743f87f28f1d040cdfacc380b1e.tar.xz qemu-782d97efec66d743f87f28f1d040cdfacc380b1e.zip |
mirror: Switch mirror_cow_align() to byte-based
We are gradually converting to byte-based interfaces, as they are
easier to reason about than sector-based. Convert another internal
function (no semantic change), and add mirror_clip_bytes() as a
counterpart to mirror_clip_sectors(). Some of the conversion is
a bit tricky, requiring temporaries to convert between units; it
will be cleared up in a following patch.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions