diff options
| author | Eric Blake <eblake@redhat.com> | 2017-07-07 07:44:46 -0500 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2017-07-10 13:18:06 +0200 |
| commit | b436982f04fb33bb29fcdea190bd1fdc97dc65ef (patch) | |
| tree | 08a18161ce64f7aca736a8fbe3a58aa011d2b9d9 /scripts/qapi.py | |
| parent | 317a6676a279bf71c881992387f75e16e009259c (diff) | |
| download | focaccia-qemu-b436982f04fb33bb29fcdea190bd1fdc97dc65ef.tar.gz focaccia-qemu-b436982f04fb33bb29fcdea190bd1fdc97dc65ef.zip | |
mirror: Switch MirrorBlockJob to byte-based
We are gradually converting to byte-based interfaces, as they are easier to reason about than sector-based. Continue by converting an internal structure (no semantic change), and all references to the buffer size. Add an assertion that our use of s->granularity >> BDRV_SECTOR_BITS (necessary for interaction with sector-based dirty bitmaps, until a later patch converts those to be byte-based) does not suffer from truncation problems. [checkpatch has a false positive on use of MIN() in this patch] Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions