On 2017-05-17 05:21, Han Han wrote:
> Hello, I am using qemu-2.9 and try this command:
> # qemu-img info
> 'json:{"file.driver":"rbd","file.filename":"rbd:rbd/rbd.img:mon_host=XXXX"}'
> qemu-img: Could not open
> 'json:{"file.driver":"rbd","file.filename":"rbd:rbd/rbd.img:mon_host=XXXX"}':
> Parameters 'pool' and 'image' are required
>
> Refer to https://bugzilla.redhat.com/show_bug.cgi?id=1371758#c5, it
> works in qemu-2.8. So I want make sure if this json format is disabled
> in qemu-2.9.Yes, it is. See here how the options work now: http://git.qemu.org/?p=qemu.git;a=blob;f=qapi/block-core.json;h=6b974b952fff1b4fd3d65d9a4d13b60de28e2c83;hb=HEAD#l2625 As of 2.9, the blockdev-add QMP command is considered stable. Therefore, this new RBD interface is stable, too. But I'm not sure why you would use a JSON filename there anyway. Why not just use $ qemu-img info rbd:rbd/rbd.img:mon_host=XXXX ? Max
signature.asc
Description: OpenPGP digital signature
