]> git.proxmox.com Git - mirror_qemu.git/commit
stream: Switch stream_run() to byte-based
authorEric Blake <eblake@redhat.com>
Fri, 7 Jul 2017 12:44:43 +0000 (07:44 -0500)
committerKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:18:06 +0000 (13:18 +0200)
commitd535435f4a3968a897803d38bf1642f3b644979a
tree1b7c670059cb1eca3039fa8639f40977340ae2e4
parent158c6492571c82c5632070c7ccee36b3dffd3ca9
stream: Switch stream_run() 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 streaming to track by bytes instead of sectors
(although we are still guaranteed that we iterate by steps that
are sector-aligned).

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>
block/stream.c