]> xenbits.xensource.com Git - libvirt.git/commit
virStorageSourceParseBackingJSON: Move deflattening of json: URIs out of recursion
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Feb 2020 12:21:42 +0000 (13:21 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 10 Feb 2020 16:26:27 +0000 (17:26 +0100)
commitaadb34be3428a5e467289709290b536ae6bf5d2a
tree841567a729e9d368be4a257eca481f79287ce5ea
parent4a6bc568cd485f8f252a4750c5a67735f15ff82d
virStorageSourceParseBackingJSON: Move deflattening of json: URIs out of recursion

Originally virStorageSourceParseBackingJSON didn't recurse, but when
the 'raw' driver support was added we need to parse it's information
which contains nested 'file' object.

Since the deflattening helper recurses already there's no need to call
it again. Move it one level up to the entry point.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virstoragefile.c