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

Ján Tomko jtomko at redhat.com
Tue Apr 2 12:16:15 UTC 2019


On Tue, Apr 02, 2019 at 02:09:24PM +0200, Peter Krempa wrote:
>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 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.
>
>Should I rename virDomainDiskSourceFormat to virDomainStorageSourceFormat
>in an upcomming patch?
>

Please do.

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/07c3535e/attachment-0001.sig>


More information about the libvir-list mailing list