diff options
author | Hanna Reitz <hreitz@redhat.com> | 2022-06-20 18:26:58 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2023-02-01 16:52:33 +0100 |
commit | 5d8813593f3f673fc96eed199beb35690cc46f58 (patch) | |
tree | 78cf87bad3f02e6b092f53bd97c6aa897f765f9b /include/block/qapi.h | |
parent | b1f4cd1589a16fec02f264a09bd3560e4ccce3c2 (diff) |
block/qapi: Let bdrv_query_image_info() recurse
There is no real reason why bdrv_query_image_info() should generally not
recurse. The ImageInfo struct has a pointer to the backing image, so it
should generally be filled, unless the caller explicitly opts out.
This moves the recursing code from bdrv_block_device_info() into
bdrv_query_image_info().
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220620162704.80987-7-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/block/qapi.h b/include/block/qapi.h index 7e58903c20..ff8fb8a764 100644 --- a/include/block/qapi.h +++ b/include/block/qapi.h @@ -40,6 +40,8 @@ void bdrv_query_block_node_info(BlockDriverState *bs, Error **errp); void bdrv_query_image_info(BlockDriverState *bs, ImageInfo **p_info, + bool flat, + bool skip_implicit_filters, Error **errp); void bdrv_snapshot_dump(QEMUSnapshotInfo *sn); |