]> git.proxmox.com Git - mirror_qemu.git/commit - block/vmdk.c
vmdk: Switch to .bdrv_co_block_status()
authorEric Blake <eblake@redhat.com>
Tue, 13 Feb 2018 20:26:58 +0000 (14:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (18:39 +0100)
commitc72080b9b8eab200551c26467511ebf599754f9e
tree3c79b46f8965ca2d9ffcc6285e8474b6a67ff21a
parent67635f6abebac7f49d0067b3e60626c857cefa06
vmdk: Switch to .bdrv_co_block_status()

We are gradually moving away from sector-based interfaces, towards
byte-based.  Update the vmdk driver accordingly.  Drop the
now-unused vmdk_find_index_in_cluster().

Also, fix a pre-existing bug: if find_extent() fails (unlikely,
since the block layer did a bounds check), then we must return a
failure, rather than 0.

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/vmdk.c