[libvirt] [PATCH v2 15/29] conf: Replace virDomainDiskSourceParse by virDomainStorageSourceParse

Ján Tomko jtomko at redhat.com
Tue Apr 2 07:35:36 UTC 2019


On Fri, Mar 22, 2019 at 07:00:51PM +0100, Peter Krempa wrote:
>virDomainDiskSourceParse was now just a thin wrapper without any extra
>value. Replace all usage of it by the function it calls and remove the
>function.
>
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
>---
> src/conf/domain_conf.c   | 22 ++++------------------
> src/conf/domain_conf.h   |  5 -----
> src/conf/snapshot_conf.c |  2 +-
> tests/qemublocktest.c    |  2 +-
> 4 files changed, 6 insertions(+), 25 deletions(-)
>
>diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
>index fa50b6f000..c93c4df929 100644
>--- a/src/conf/domain_conf.c
>+++ b/src/conf/domain_conf.c
>@@ -9186,7 +9172,7 @@ virDomainDiskBackingStoreParse(xmlXPathContextPtr ctxt,
>         return -1;
>     }
>
>-    if (virDomainDiskSourceParse(source, ctxt, backingStore, flags, xmlopt) < 0 ||
>+    if (virDomainStorageSourceParse(source, ctxt, backingStore, flags, xmlopt) < 0 ||

Hmm, so we have virDomainStorageSourceParse and a corresponding
virDomainDiskSourceFormat?

Maybe the previous commit dropped the wrong function.

>         virDomainDiskBackingStoreParse(ctxt, backingStore, flags, xmlopt) < 0)
>         return -1;
>

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/20190402/9985502d/attachment-0001.sig>


More information about the libvir-list mailing list