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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 02, 2019 at 09:35:36 +0200, Ján Tomko wrote:
> 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@xxxxxxxxxx>
> > ---
> > 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.

Should I rename virDomainDiskSourceFormat to virDomainStorageSourceFormat
in an upcomming patch?

> 
> >         virDomainDiskBackingStoreParse(ctxt, backingStore, flags, xmlopt) < 0)
> >         return -1;
> > 
> 
> Reviewed-by: Ján Tomko <jtomko@xxxxxxxxxx>
> 
> Jano



> --
> libvir-list mailing list
> libvir-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libvir-list

Attachment: signature.asc
Description: PGP signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux