diff options
| author | Eric Blake | 2017-09-25 16:55:20 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2017-10-06 16:28:58 +0200 |
| commit | e0d7f73e63427521aabd7311a86fe90fd02897c0 (patch) | |
| tree | dcf7dde8cb8ebfa6e8ebf3c3a4e7c94aca628459 /scripts/argparse.py | |
| parent | dirty-bitmap: Change bdrv_get_dirty_locked() to take bytes (diff) | |
| download | qemu-e0d7f73e63427521aabd7311a86fe90fd02897c0.tar.gz qemu-e0d7f73e63427521aabd7311a86fe90fd02897c0.tar.xz qemu-e0d7f73e63427521aabd7311a86fe90fd02897c0.zip | |
dirty-bitmap: Change bdrv_[re]set_dirty_bitmap() to use bytes
Some of the callers were already scaling bytes to sectors; others
can be easily converted to pass byte offsets, all in our shift
towards a consistent byte interface everywhere. Making the change
will also make it easier to write the hold-out callers to use byte
rather than sectors for their iterations; it also makes it easier
for a future dirty-bitmap patch to offload scaling over to the
internal hbitmap. Although all callers happen to pass
sector-aligned values, make the internal scaling robust to any
sub-sector requests.
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>
Diffstat (limited to 'scripts/argparse.py')
0 files changed, 0 insertions, 0 deletions
