]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Switch qcow2_measure() to byte-based iteration
authorEric Blake <eblake@redhat.com>
Mon, 25 Sep 2017 14:55:22 +0000 (09:55 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Oct 2017 14:28:58 +0000 (16:28 +0200)
commitb85ee45334585c49c5489a303336df119408763a
tree91a06c6147dcbe0cc416db83e5d0085361766754
parent23ca459a455c83ffadb03ab1eedf0b6cff62bfeb
qcow2: Switch qcow2_measure() to byte-based iteration

This is new code, but it is easier to read if it makes passes over
the image using bytes rather than sectors (and will get easier in
the future when bdrv_get_block_status is converted to byte-based).

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/qcow2.c