summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-03-22 13:54:08 +0100
committerKevin Wolf <kwolf@redhat.com>2016-03-30 11:59:32 +0200
commit72f41b6fbd19113247f1ff46f844e9b79cbd5e48 (patch)
tree89b612500836a85d0722d63f399a28638ee6cd7a /block
parentd0855f1235ed203700a3a24fc7e138490c272117 (diff)
downloadqemu-72f41b6fbd19113247f1ff46f844e9b79cbd5e48.tar.gz
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.c17
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)