Re: [Qemu-devel] [PATCH V5 05/13] block: add image info query function bdrv_query_image_info()

2013-01-31 Thread Wenchao Xia
于 2013-1-29 20:55, Kevin Wolf 写道: Am 24.01.2013 03:57, schrieb Wenchao Xia: This patch add function bdrv_query_image_info(), which will return image info in qmp object format. The implementation code are mostly copied from qemu-img.c, but use block layer function to get snapshot info. Don't

Re: [Qemu-devel] [PATCH V5 05/13] block: add image info query function bdrv_query_image_info()

2013-01-29 Thread Kevin Wolf
Am 24.01.2013 03:57, schrieb Wenchao Xia: > This patch add function bdrv_query_image_info(), which will return > image info in qmp object format. The implementation code are mostly > copied from qemu-img.c, but use block layer function to get snapshot > info. Don't copy code, reuse it. Can you

[Qemu-devel] [PATCH V5 05/13] block: add image info query function bdrv_query_image_info()

2013-01-23 Thread Wenchao Xia
This patch add function bdrv_query_image_info(), which will return image info in qmp object format. The implementation code are mostly copied from qemu-img.c, but use block layer function to get snapshot info. A check with bdrv_can_read_snapshot(), was done before collecting snapshot info. Sig