diff options
author | Wenchao Xia | 2013-06-06 06:27:59 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2013-06-07 13:37:45 +0200 |
commit | 553a7e871822d933beaefbd596f0e4eed1614373 (patch) | |
tree | d93e7aa0274a10461ae726a0ab216cfd62771c66 /include/block/qapi.h | |
parent | block: add image info query function bdrv_query_image_info() (diff) | |
download | qemu-553a7e871822d933beaefbd596f0e4eed1614373.tar.gz qemu-553a7e871822d933beaefbd596f0e4eed1614373.tar.xz qemu-553a7e871822d933beaefbd596f0e4eed1614373.zip |
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 <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block/qapi.h')
-rw-r--r-- | include/block/qapi.h | 4 |
1 files changed, 3 insertions, 1 deletions
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, |