From 553a7e871822d933beaefbd596f0e4eed1614373 Mon Sep 17 00:00:00 2001 From: Wenchao Xia Date: Thu, 6 Jun 2013 12:27:59 +0800 Subject: qmp: add ImageInfo in BlockDeviceInfo used by query-block Now image info will be retrieved as an embbed json object inside BlockDeviceInfo, backing chain info and all related internal snapshot info can be got in the enhanced recursive structure of ImageInfo. New recursive member *backing-image is added to reflect the backing chain status. Signed-off-by: Wenchao Xia Signed-off-by: Stefan Hajnoczi --- include/block/qapi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/block/qapi.h b/include/block/qapi.h index ab1f48f6f7..0496cc9282 100644 --- a/include/block/qapi.h +++ b/include/block/qapi.h @@ -35,7 +35,9 @@ int bdrv_query_snapshot_info_list(BlockDriverState *bs, void bdrv_query_image_info(BlockDriverState *bs, ImageInfo **p_info, Error **errp); -BlockInfo *bdrv_query_info(BlockDriverState *s); +void bdrv_query_info(BlockDriverState *bs, + BlockInfo **p_info, + Error **errp); BlockStats *bdrv_query_stats(const BlockDriverState *bs); void bdrv_snapshot_dump(fprintf_function func_fprintf, void *f, -- cgit v1.2.3