diff options
author | Eric Blake <eblake@redhat.com> | 2017-10-11 22:47:01 -0500 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-10-26 14:45:57 +0200 |
commit | 7286d6106fd2c8f2646415c8e02438db3c21a46f (patch) | |
tree | 8c360915262f33bcf0e6bb1199f2d3f89f6ecbf9 /qemu-img.c | |
parent | f06f6b66c789c41165b46f98c88141b955cd594d (diff) | |
download | qemu-7286d6106fd2c8f2646415c8e02438db3c21a46f.zip qemu-7286d6106fd2c8f2646415c8e02438db3c21a46f.tar.gz qemu-7286d6106fd2c8f2646415c8e02438db3c21a46f.tar.bz2 |
block: Switch bdrv_make_zero() 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 zeroing a device 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: Fam Zheng <famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions