OSDN Git Service

vdi: Switch to .bdrv_co_block_status()
authorEric Blake <eblake@redhat.com>
Tue, 13 Feb 2018 20:26:57 +0000 (14:26 -0600)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Mar 2018 17:39:07 +0000 (18:39 +0100)
commit67635f6abebac7f49d0067b3e60626c857cefa06
tree335c92129540b50721cf2ede7668b418fcee25fa
parentb80666bf844bac5ae775cb67029a3cd67ad7c730
vdi: Switch to .bdrv_co_block_status()

We are gradually moving away from sector-based interfaces, towards
byte-based.  Update the vdi driver accordingly.  Note that the
TODO is already covered (the block layer guarantees bounds of its
requests), and that we can remove the now-unused s->block_sectors.

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