summaryrefslogtreecommitdiffstats
path: root/include/block/block.h
diff options
context:
space:
mode:
authorKevin Wolf2018-01-10 15:52:33 +0100
committerKevin Wolf2018-03-09 15:17:47 +0100
commite1d74bc6c61f9be8c1eb19f39d96b08e7332c864 (patch)
tree5e79f87e43503d153a32585b71220b197a342556 /include/block/block.h
parentqcow2: Pass BlockdevCreateOptions to qcow2_co_create() (diff)
downloadqemu-e1d74bc6c61f9be8c1eb19f39d96b08e7332c864.tar.gz
qemu-e1d74bc6c61f9be8c1eb19f39d96b08e7332c864.tar.xz
qemu-e1d74bc6c61f9be8c1eb19f39d96b08e7332c864.zip
qcow2: Use BlockdevRef in qcow2_co_create()
Instead of passing a separate BlockDriverState* into qcow2_co_create(), make use of the BlockdevRef that is included in BlockdevCreateOptions. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block/block.h')
-rw-r--r--include/block/block.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 8b6db952a2..7805187b30 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -246,6 +246,7 @@ BdrvChild *bdrv_open_child(const char *filename,
BlockDriverState* parent,
const BdrvChildRole *child_role,
bool allow_none, Error **errp);
+BlockDriverState *bdrv_open_blockdev_ref(BlockdevRef *ref, Error **errp);
void bdrv_set_backing_hd(BlockDriverState *bs, BlockDriverState *backing_hd,
Error **errp);
int bdrv_open_backing_file(BlockDriverState *bs, QDict *parent_options,