diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-06-06 12:27:59 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-06-07 13:37:45 +0200 |
commit | 553a7e871822d933beaefbd596f0e4eed1614373 (patch) | |
tree | d93e7aa0274a10461ae726a0ab216cfd62771c66 /include | |
parent | 43526ec8d1395fe4efbed15e9764b64641b95bcc (diff) | |
download | qemu-553a7e871822d933beaefbd596f0e4eed1614373.tar.gz qemu-553a7e871822d933beaefbd596f0e4eed1614373.tar.bz2 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')
-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, |