diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-05-25 11:09:45 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-06-04 13:56:30 +0200 |
commit | 5b91704469c0f801e0219f26458356872c4145ab (patch) | |
tree | 604c6165a9af9a58c320b5480192b48909de3f96 /include | |
parent | f364ec65b56b69c55b674cb6560aa1fbbea9e013 (diff) |
block: dump snapshot and image info to specified output
bdrv_snapshot_dump() and bdrv_image_info_dump() do not dump to a buffer now,
some internal buffers are still used for format control, which have no
chance to be truncated. As a result, these two functions have no more issue
of truncation, and they can be used by both qemu and qemu-img with correct
parameter specified.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/qapi.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/block/qapi.h b/include/block/qapi.h index 55d1848de9..e6e568da94 100644 --- a/include/block/qapi.h +++ b/include/block/qapi.h @@ -36,6 +36,8 @@ void bdrv_collect_image_info(BlockDriverState *bs, BlockInfo *bdrv_query_info(BlockDriverState *s); BlockStats *bdrv_query_stats(const BlockDriverState *bs); -char *bdrv_snapshot_dump(char *buf, int buf_size, QEMUSnapshotInfo *sn); -void bdrv_image_info_dump(ImageInfo *info); +void bdrv_snapshot_dump(fprintf_function func_fprintf, void *f, + QEMUSnapshotInfo *sn); +void bdrv_image_info_dump(fprintf_function func_fprintf, void *f, + ImageInfo *info); #endif |