OSDN Git Service

block: Use BdrvChild callbacks for change_media/resize
authorKevin Wolf <kwolf@redhat.com>
Wed, 24 Feb 2016 14:13:35 +0000 (15:13 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2016 14:45:31 +0000 (16:45 +0200)
commit5c8cab48087d3544cb788309ac729bca08244020
treeaa5b14bd20159c44139267b448436eef2331be74
parentcbe1beb7a1eaa34e0c24b4897395dac017e5d16f
block: Use BdrvChild callbacks for change_media/resize

We want to get rid of BlockDriverState.blk in order to allow multiple
BlockBackends per BDS. Converting the device callbacks in block.c (which
assume a single BlockBackend) to per-child callbacks gets us rid of the
first few instances.

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