]> git.ipfire.org Git - thirdparty/qemu.git/commit
backup: Switch backup_run() to byte-based
authorEric Blake <eblake@redhat.com>
Fri, 7 Jul 2017 12:44:56 +0000 (07:44 -0500)
committerKevin Wolf <kwolf@redhat.com>
Mon, 10 Jul 2017 11:18:06 +0000 (13:18 +0200)
commit6f8e35e2414433a56b4bd548b87b8ac2aedecb77
treef025433690bb914e26bd579c5dfc2b3c9a902c15
parent03f5d60bbf264ea68e50db2a7b2383a8da5122d2
backup: Switch backup_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 backups to track by bytes instead of sectors
(although we are still guaranteed that we iterate by steps that
are cluster-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/backup.c