]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Switch is_zero_sectors() to byte-based
authorEric Blake <eblake@redhat.com>
Thu, 12 Oct 2017 03:47:00 +0000 (22:47 -0500)
committerKevin Wolf <kwolf@redhat.com>
Thu, 26 Oct 2017 12:45:57 +0000 (14:45 +0200)
commitf06f6b66c789c41165b46f98c88141b955cd594d
treec802d33b99c3811910a878bbf5f86bca70fe20eb
parent7cfd527525a7d6b1c904890a6b84c1227846415e
qcow2: Switch is_zero_sectors() to byte-based

We are gradually converting to byte-based interfaces, as they are
easier to reason about than sector-based.  Convert another internal
function (no semantic change), and rename it to is_zero() in the
process.

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