Re: [RFC PATCHv2 3/n] snapshot: make cloning of domain definition easier

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

 



On 11/20/2012 08:05 AM, Peter Krempa wrote:
> On 11/20/12 01:09, Eric Blake wrote:
>> Upcoming patches for revert-and-clone branching of snapshots need
>> to be able to copy a domain definition; make this step reusable.
>>
>> * src/conf/domain_conf.h (virDomainDefCopy): New prototype.
>> * src/conf/domain_conf.c (virDomainObjCopyPersistentDef): Split...
>> (virDomainDefCopy): ...into new function.
>> (virDomainObjSetDefTransient): Use it.
>> * src/libvirt_private.syms (domain_conf.h): Export it.
>> * src/qemu/qemu_driver.c (qemuDomainRevertToSnapshot): Use it.
>> ---
>>   src/conf/domain_conf.c   | 37 +++++++++++++++++++++++--------------
>>   src/conf/domain_conf.h   |  2 ++
>>   src/libvirt_private.syms |  1 +
>>   src/qemu/qemu_driver.c   | 14 ++------------
>>   4 files changed, 28 insertions(+), 26 deletions(-)
>>
> 
> ACK and you can push this out of order. I'll fix my series to take this
> improvement into account.

Done.

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

Attachment: signature.asc
Description: OpenPGP digital 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]