Re: [PATCHv2 variant 1] snapshot: implement new APIs for esx and vbox

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

 



On 06/17/2012 04:29 AM, Matthias Bolte wrote:
> 2012/6/12 Eric Blake <eblake@xxxxxxxxxx>:
>> The two new APIs are rather trivial; based on bits and pieces of
>> other existing APIs.  But rather than blindly return 0 or 1 for
>> HasMetadata, I chose to first validate that the snapshot in
>> question in fact exists.  In the process, I noticed other APIs
>> that were blindly succeeding instead of checking for existence.
>>
>> * src/esx/esx_driver.c (esxDomainSnapshotIsCurrent)
>> (esxDomainSnapshotHasMetadata): New functions.
>> (esxDomainIsUpdated, esxDomainIsPersistent): Add existence checks.
>> * src/vbox/vbox_tmpl.c (vboxDomainSnapshotIsCurrent)
>> (vboxDomainSnapshotHasMetadata): New functions.
>> (vboxDomainIsPersistent, vboxDomainIsUpdated): Add existence checks.
>> ---
>>
>> v2: add existence checks to other functions
>> I like this version better.  However, while it compiles, I'm
>> completely unable to runtime test it, so I'd appreciate a
>> good review.
>>

>> +
>> +cleanup:
> 
> VBOX_RELEASE(snap); is missing here.

Fixed.

> 
>> +    VBOX_RELEASE(machine);
>> +    vboxIIDUnalloc(&iid);
>> +    return ret;
>> +}
> 
> Tested and works. ACK.

I've split this patch into two parts (adjust the existing functions to
check for existence, and adding the new functions), then pushed.

-- 
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]