]> git.proxmox.com Git - mirror_qemu.git/commit - block/mirror.c
dirty-bitmap: Set iterator start by offset, not sector
authorEric Blake <eblake@redhat.com>
Mon, 25 Sep 2017 14:55:16 +0000 (09:55 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
commit715a74d819926af38bfeddb3ae29c9fe6b7736bb
treebd59327204ac3178ee879d5bda558b04e2d6c9a3
parentc7e7c87ac8e03fe088f4b1f820da30e85a07fd6b
dirty-bitmap: Set iterator start by offset, not sector

All callers to bdrv_dirty_iter_new() passed 0 for their initial
starting point, drop that parameter.

Most callers to bdrv_set_dirty_iter() were scaling a byte offset to
a sector number; the exception qcow2-bitmap will be converted later
to use byte rather than sector iteration.  Move the scaling to occur
internally to dirty bitmap code instead, so that callers now pass
in bytes.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/backup.c
block/dirty-bitmap.c
block/mirror.c
block/qcow2-bitmap.c
include/block/dirty-bitmap.h