block: Add blk_remove_bs()
commit1c95f7e1aff8417ff6e6cc23bc2d04fbcf79d37e
authorMax Reitz <mreitz@redhat.com>
Mon, 26 Oct 2015 20:39:05 +0000 (26 21:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 11 Nov 2015 15:22:46 +0000 (11 16:22 +0100)
treeb3d39c2fdb23e362525c5d81421996a971c982ad
parent9f4ed6fbd264a7c097590d830dcfd93996a80acb
block: Add blk_remove_bs()

This function removes the BlockDriverState associated with the given
BlockBackend from that BB and sets the BDS pointer in the BB to NULL.

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