]> git.proxmox.com Git - mirror_qemu.git/commit - qapi/block-core.json
block/qapi: Introduce BlockGraphInfo
authorHanna Reitz <hreitz@redhat.com>
Mon, 20 Jun 2022 16:26:59 +0000 (18:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 1 Feb 2023 15:52:33 +0000 (16:52 +0100)
commit6cab33997b91eb86e82a6a2ae58a24f835249d4a
tree4c02b36095dbcc771a7d28ef6c986eecc901be68
parent5d8813593f3f673fc96eed199beb35690cc46f58
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>
block/qapi.c
include/block/qapi.h
qapi/block-core.json