summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf2016-12-20 22:21:17 +0100
committerKevin Wolf2017-02-28 20:40:35 +0100
commit8b2ff5291f9e39fb1c0c6c0c4321daac60aab4db (patch)
tree8c114097b7f06275d87594f120cd517e2724ee4b /include/block
parentblock: Add op blocker permission constants (diff)
downloadqemu-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.h3
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);