]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Switch to .bdrv_co_block_status()
authorEric Blake <eblake@redhat.com>
Tue, 13 Feb 2018 20:26:52 +0000 (14:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (18:39 +0100)
commita320fb04b66a2189b6cbd7924aa7bfaaded79afe
treeaf049079ddeebaa8d491f1344c6f56e6269d7b05
parentd63b4c93e30915def5afabdb48134f5238ee793d
qcow2: Switch to .bdrv_co_block_status()

We are gradually moving away from sector-based interfaces, towards
byte-based.  Update the qcow2 driver accordingly.

For now, we are ignoring the 'want_zero' hint.  However, it should
be relatively straightforward to honor the hint as a way to return
larger *pnum values when we have consecutive clusters with the same
data/zero status but which differ only in having non-consecutive
mappings.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c