mirror: Switch mirror_do_read() to byte-based
commitae4cc8777b456ab87ca1f02b98b006ec0c96335e
authorEric Blake <eblake@redhat.com>
Fri, 7 Jul 2017 12:44:50 +0000 (7 07:44 -0500)
committerKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:18:06 +0000 (10 13:18 +0200)
tree9fb39918b1608b4bf91071a149340c711911f0d8
parent782d97efec66d743f87f28f1d040cdfacc380b1e
mirror: Switch mirror_do_read() 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, preserving all existing semantics, and adding one more
assertion that things are still sector-aligned (so that conversions
to sectors in mirror_read_complete don't need to round).

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/mirror.c