OSDN Git Service

block: Make bdrv_states public
authorMax Reitz <mreitz@redhat.com>
Mon, 26 Oct 2015 20:39:06 +0000 (21:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 11 Nov 2015 15:22:46 +0000 (16:22 +0100)
commitc69a4dd89989b483b06d765b13e41594c78d32b9
tree30f9d00b6e2f186910e191c6eec97f6f20f8ecd8
parent1c95f7e1aff8417ff6e6cc23bc2d04fbcf79d37e
block: Make bdrv_states public

When inserting a BDS tree into a BB, we will need to add the root BDS to
this list. Since we will want to do that in the blockdev-insert-medium
implementation in blockdev.c, we will need access to it there.

This patch is not exactly elegant, but bdrv_states will be removed in
the future anyway because we no longer need it since we have BBs.

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