diff options
author | Kevin Wolf | 2016-12-20 22:21:17 +0100 |
---|---|---|
committer | Kevin Wolf | 2017-02-28 20:40:35 +0100 |
commit | 8b2ff5291f9e39fb1c0c6c0c4321daac60aab4db (patch) | |
tree | 8c114097b7f06275d87594f120cd517e2724ee4b /include/block | |
parent | block: Add op blocker permission constants (diff) | |
download | qemu-8b2ff5291f9e39fb1c0c6c0c4321daac60aab4db.tar.gz qemu-8b2ff5291f9e39fb1c0c6c0c4321daac60aab4db.tar.xz qemu-8b2ff5291f9e39fb1c0c6c0c4321daac60aab4db.zip |
block: Add Error argument to bdrv_attach_child()
It will have to return an error soon, so prepare the callers for it.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/block.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/block/block.h b/include/block/block.h index f62f38e6a4..ff951ea772 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -520,7 +520,8 @@ void bdrv_unref_child(BlockDriverState *parent, BdrvChild *child); BdrvChild *bdrv_attach_child(BlockDriverState *parent_bs, BlockDriverState *child_bs, const char *child_name, - const BdrvChildRole *child_role); + const BdrvChildRole *child_role, + Error **errp); bool bdrv_op_is_blocked(BlockDriverState *bs, BlockOpType op, Error **errp); void bdrv_op_block(BlockDriverState *bs, BlockOpType op, Error *reason); |