block: dump snapshot and image info to specified output
commit5b91704469c0f801e0219f26458356872c4145ab
authorWenchao Xia <xiawenc@linux.vnet.ibm.com>
Sat, 25 May 2013 03:09:45 +0000 (25 11:09 +0800)
committerKevin Wolf <kwolf@redhat.com>
Tue, 4 Jun 2013 11:56:30 +0000 (4 13:56 +0200)
tree604c6165a9af9a58c320b5480192b48909de3f96
parentf364ec65b56b69c55b674cb6560aa1fbbea9e013
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>
block/qapi.c
include/block/qapi.h
qemu-img.c
savevm.c