]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virStorageSourceParseBackingJSONRaw: Parse 'offset' and 'size' attributes
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Feb 2020 17:09:55 +0000 (18:09 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 14 Feb 2020 15:32:21 +0000 (16:32 +0100)
commite8a819e87f806e6c6690614c40dbeab0bd2e800e
treebec73f3b467134c876a0eef0df5cb0c43ef4cd2d
parent293e7750c9c26ac19ed4fafa9c9f1fe3e90d5078
virStorageSourceParseBackingJSONRaw: Parse 'offset' and 'size' attributes

If the parsed 'raw' format JSON string has 'offset' or 'size' attributes
parse them as the format slice.

https://bugzilla.redhat.com/show_bug.cgi?id=1791788

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