[GEDI] [PATCH v2] gluster: fix .bdrv_reopen_prepare when backing file is a JSON object

Max Reitz mreitz at redhat.com
Mon Jul 15 13:44:13 UTC 2019


On 15.07.19 15:28, Stefano Garzarella wrote:
> When the backing_file is specified as a JSON object, the
> qemu_gluster_reopen_prepare() fails with this message:
>     invalid URI json:{"server.0.host": ...}
> 
> In this case, we should call qemu_gluster_init() using the QDict
> 'state->options' that contains the JSON parameters already parsed.
> 
> Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1542445
> Signed-off-by: Stefano Garzarella <sgarzare at redhat.com>
> ---
> v2:
>     - check if 'state->bs->exact_filename' is empty, instead to parse
>       'state->bs->filename' to check if it contains "json:" [Max]
> ---
>  block/gluster.c | 12 +++++++++++-
>  1 file changed, 11 insertions(+), 1 deletion(-)

Thanks, applied to my block branch:

https://git.xanclic.moe/XanClic/qemu/commits/branch/block

Max

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gluster.org/pipermail/integration/attachments/20190715/ebb82c1b/attachment.sig>


More information about the integration mailing list