diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-03-22 13:54:08 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-03-30 11:59:32 +0200 |
commit | 72f41b6fbd19113247f1ff46f844e9b79cbd5e48 (patch) | |
tree | 89b612500836a85d0722d63f399a28638ee6cd7a /block | |
parent | d0855f1235ed203700a3a24fc7e138490c272117 (diff) |
block: Remove blk_set_bs()
The function is unused since commit f21d96d0 ('block: Use BdrvChild in
BlockBackend').
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/block-backend.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/block/block-backend.c b/block/block-backend.c index adf592e867..e578a2d5e3 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -372,23 +372,6 @@ BlockDriverState *blk_bs(BlockBackend *blk) } /* - * Changes the BlockDriverState attached to @blk - */ -void blk_set_bs(BlockBackend *blk, BlockDriverState *bs) -{ - bdrv_ref(bs); - - if (blk->root) { - blk->root->bs->blk = NULL; - bdrv_root_unref_child(blk->root); - } - assert(bs->blk == NULL); - - blk->root = bdrv_root_attach_child(bs, "root", &child_root); - bs->blk = blk; -} - -/* * Return @blk's DriveInfo if any, else null. */ DriveInfo *blk_legacy_dinfo(BlockBackend *blk) |