diff options
| author | Eric Blake | 2017-07-07 14:44:51 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2017-07-10 13:18:06 +0200 |
| commit | fb2ef7919bd7b125a2ff6cb70689a7ab93b9d05a (patch) | |
| tree | 911acb0ea6c9cd50ec399714f3c7db6ca1710808 /include | |
| parent | mirror: Switch mirror_do_read() to byte-based (diff) | |
| download | qemu-fb2ef7919bd7b125a2ff6cb70689a7ab93b9d05a.tar.gz qemu-fb2ef7919bd7b125a2ff6cb70689a7ab93b9d05a.tar.xz qemu-fb2ef7919bd7b125a2ff6cb70689a7ab93b9d05a.zip | |
mirror: Switch mirror_iteration() to byte-based
We are gradually converting to byte-based interfaces, as they are
easier to reason about than sector-based. Change the internal
loop iteration of mirroring to track by bytes instead of sectors
(although we are still guaranteed that we iterate by steps that
are both sector-aligned and multiples of the granularity). Drop
the now-unused mirror_clip_sectors().
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 'include')
0 files changed, 0 insertions, 0 deletions
