diff options
| author | Eric Blake | 2017-10-12 05:47:01 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2017-10-26 14:45:57 +0200 |
| commit | 7286d6106fd2c8f2646415c8e02438db3c21a46f (patch) | |
| tree | 8c360915262f33bcf0e6bb1199f2d3f89f6ecbf9 /scripts/modules/module_block.py | |
| parent | qcow2: Switch is_zero_sectors() to byte-based (diff) | |
| download | qemu-7286d6106fd2c8f2646415c8e02438db3c21a46f.tar.gz qemu-7286d6106fd2c8f2646415c8e02438db3c21a46f.tar.xz qemu-7286d6106fd2c8f2646415c8e02438db3c21a46f.zip | |
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 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions
