[PATCH 04/15] virStorageSourceParseBackingJSON: Allow 'json:' pseudo URIs without 'file' wrapper

Ján Tomko jtomko at redhat.com
Thu Feb 6 15:11:07 UTC 2020


On Thu, Feb 06, 2020 at 08:51:56AM +0100, Peter Krempa wrote:
>There are two possibilities:
>1) json:{"file":{"driver":...}}
>2) json:{"driver":...}
>
>Our code didn't work properly with the second one as it was expecting
>the 'file' wrapper. Conditionalize the removal to only the situation
>when the top level doesn't have "driver".
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/util/virstoragefile.c | 41 +++++++++++++++++++++++++--------------
> 1 file changed, 26 insertions(+), 15 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200206/0b35aec3/attachment-0001.sig>


More information about the libvir-list mailing list