aboutsummaryrefslogtreecommitdiff
path: root/include/block/qapi.h
diff options
context:
space:
mode:
authorHanna Reitz <hreitz@redhat.com>2022-06-20 18:26:59 +0200
committerKevin Wolf <kwolf@redhat.com>2023-02-01 16:52:33 +0100
commit6cab33997b91eb86e82a6a2ae58a24f835249d4a (patch)
tree4c02b36095dbcc771a7d28ef6c986eecc901be68 /include/block/qapi.h
parent5d8813593f3f673fc96eed199beb35690cc46f58 (diff)
downloadqemu-6cab33997b91eb86e82a6a2ae58a24f835249d4a.zip
qemu-6cab33997b91eb86e82a6a2ae58a24f835249d4a.tar.gz
qemu-6cab33997b91eb86e82a6a2ae58a24f835249d4a.tar.bz2
block/qapi: Introduce BlockGraphInfo
Introduce a new QAPI type BlockGraphInfo and an associated bdrv_query_block_graph_info() function that recursively gathers BlockNodeInfo objects through a block graph. A follow-up patch is going to make "qemu-img info" use this to print information about all nodes that are (usually implicitly) opened for a given image file. Signed-off-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220620162704.80987-8-hreitz@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block/qapi.h')
-rw-r--r--include/block/qapi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/block/qapi.h b/include/block/qapi.h
index ff8fb8a..685e7c2 100644
--- a/include/block/qapi.h
+++ b/include/block/qapi.h
@@ -43,6 +43,9 @@ void bdrv_query_image_info(BlockDriverState *bs,
bool flat,
bool skip_implicit_filters,
Error **errp);
+void bdrv_query_block_graph_info(BlockDriverState *bs,
+ BlockGraphInfo **p_info,
+ Error **errp);
void bdrv_snapshot_dump(QEMUSnapshotInfo *sn);
void bdrv_image_info_specific_dump(ImageInfoSpecific *info_spec,