block: Remove BlockDriverState.blk
commit1f0c461b82d5ec2664ca0cfc9548f80da87a8f8a
authorKevin Wolf <kwolf@redhat.com>
Tue, 22 Mar 2016 17:38:44 +0000 (22 18:38 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 19 May 2016 14:45:31 +0000 (19 16:45 +0200)
treecaa8f8dc2ec1f34ad7ffecf3f6926005f2720e8b
parent79c719b755134da3dd2ba2a63a9a7db765f68e53
block: Remove BlockDriverState.blk

This patch removes the remaining users of bs->blk, which will allow us
to have multiple BBs on top of a single BDS. In the meantime, all checks
that are currently in place to prevent the user from creating such
setups can be switched to bdrv_has_blk() instead of accessing BDS.blk.

Future patches can allow them and e.g. enable users to mirror to a block
device that already has a BlockBackend on it.

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