[libvirt] [PATCH v3 15/18] blockcopy: add a way to parse disk source

Eric Blake eblake at redhat.com
Mon Sep 8 22:14:50 UTC 2014


On 09/05/2014 08:14 AM, Peter Krempa wrote:
> On 08/31/14 06:02, Eric Blake wrote:
>> The new blockcopy API wants to reuse only a subset of the disk
>> hotplug parser - namely, we only care about the embedded
>> virStorageSourcePtr inside a <disk> XML.  Strange as it may
>> seem, it was easier to just parse an entire disk definition,
>> then throw away everything but the embedded source, than it
>> was to disentangle the source parsing code from the rest of
>> the overall disk parsing function.  All that I needed was a
>> couple of tweaks and a new internal flag that determines
>> whether the normally-mandatory target element can be
>> gracefully skipped, since everything else was already optional.
>>

> 
> ACK, thanks for dropping the refactor part.

I've pushed this one.  I've got enough other tweaks in the remaining
patches in v3 that I'll post a v4 for them.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140908/9359e868/attachment-0001.sig>


More information about the libvir-list mailing list