vpc: Implement bdrv_co_get_block_status()
authorKevin Wolf <kwolf@redhat.com>
Wed, 11 Feb 2015 14:56:01 +0000 (15:56 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 9 Mar 2015 10:11:59 +0000 (11:11 +0100)
commit0cc84887068eeb59eed84dbab6547b39e83d739c
treed496b42192b85a2fae63be27a216740e31e27314
parent3f3f20dcd34fc2fcf6dea2fe4e9b45d1c4d67288
vpc: Implement bdrv_co_get_block_status()

This implements bdrv_co_get_block_status() for VHD images. This can
significantly speed up qemu-img convert operation because only with this
function implemented sparseness can be considered. (Before, converting a
1 TB empty image took several minutes for me, now it's instantaneous.)

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/vpc.c