Re: [Qemu-devel] [PATCH V3 06/11] qmp: add interface query-images.

2013-01-15 Thread Wenchao Xia
When the device doesn't have an image, this returns: { "device": "ide1-cd0", "info": { "virtual-size": 0, "filename": "", "format": "" } }, But it would be better to return an empty dic

Re: [Qemu-devel] [PATCH V3 06/11] qmp: add interface query-images.

2013-01-14 Thread Luiz Capitulino
On Mon, 14 Jan 2013 15:09:42 +0800 Wenchao Xia wrote: > This mirror function will return all image info including > snapshots. Now Qemu have both query-images and query-block > interfaces. > > Signed-off-by: Wenchao Xia > --- > block.c | 19 + > qapi-schema.json | 27

[Qemu-devel] [PATCH V3 06/11] qmp: add interface query-images.

2013-01-13 Thread Wenchao Xia
This mirror function will return all image info including snapshots. Now Qemu have both query-images and query-block interfaces. Signed-off-by: Wenchao Xia --- block.c | 19 + qapi-schema.json | 27 +++ qmp-commands.hx | 76 ++