diff options
author | Hanna Reitz <hreitz@redhat.com> | 2022-06-20 18:26:57 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-02-01 16:52:33 +0100 |
commit | b1f4cd1589a16fec02f264a09bd3560e4ccce3c2 (patch) | |
tree | f5fd305a98288054279ff70f580d6ec8f8ef89ca /qapi/block-core.json | |
parent | a2085f8909377b6df738f6c3f7ee6db4d16da8f7 (diff) | |
download | qemu-b1f4cd1589a16fec02f264a09bd3560e4ccce3c2.zip qemu-b1f4cd1589a16fec02f264a09bd3560e4ccce3c2.tar.gz qemu-b1f4cd1589a16fec02f264a09bd3560e4ccce3c2.tar.bz2 |
qemu-img: Use BlockNodeInfo
qemu-img info never uses ImageInfo's backing-image field, because it
opens the backing chain one by one with BDRV_O_NO_BACKING, and prints
all backing chain nodes' information consecutively. Use BlockNodeInfo
to make it clear that we only print information about a single node, and
that we are not using the backing-image field.
Notably, bdrv_image_info_dump() does not evaluate the backing-image
field, so we can easily make it take a BlockNodeInfo pointer (and
consequentially rename it to bdrv_node_info_dump()). It makes more
sense this way, because again, the interface now makes it syntactically
clear that backing-image is ignored by this function.
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220620162704.80987-6-hreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi/block-core.json')
-rw-r--r-- | qapi/block-core.json | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json index 7720da0..4cf2dee 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -5796,9 +5796,9 @@ ## # @DummyBlockCoreForceArrays: # -# Not used by QMP; hack to let us use ImageInfoList internally +# Not used by QMP; hack to let us use BlockNodeInfoList internally # # Since: 8.0 ## { 'struct': 'DummyBlockCoreForceArrays', - 'data': { 'unused-image-info': ['ImageInfo'] } } + 'data': { 'unused-block-node-info': ['BlockNodeInfo'] } } |