[libvirt] [PATCH] Implementations of virDomainIsUpdated for drivers except qemu

Osier Yang jyang at redhat.com
Thu Nov 25 01:07:29 UTC 2010


于 2010年11月25日 02:33, Eric Blake 写道:
> On 11/24/2010 12:43 AM, Osier Yang wrote:
>> Except LXC and UML driver, implementations of all other drivers
>> return 0 simpley, because these drivers doesn't have config both
>
> s/return 0 simpley/simply return 0/
>

>> in memory and on disk, no need to track if the domain of these
>> drivers updated or not.
>>
>> Rename "xenUnifiedDomainisPersistent" to "xenUnifiedDomainIsPersistent"
>
> Makes sense.
>
>> +++ b/src/phyp/phyp_driver.c
>> @@ -1277,6 +1277,11 @@ phypIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED)
>>       return 1;
>>   }
>>
>> +static int
>> +phypIsSecure(virConnectPtr conn ATTRIBUTE_UNUSED)
>
> Too much copy-and-paste from the function above;
> s/Secure(virConnect/Updated(virDomain/
>
ah, urgh.
>> +++ b/src/uml/uml_driver.c
>> @@ -1213,8 +1213,6 @@ cleanup:
>>           virDomainObjUnlock(obj);
>>       return ret;
>>   }
>> -
>> -
>>   static int umlDomainIsPersistent(virDomainPtr dom)
>
> Spurious whitespace change.
>
thanks for your careful reviewing.
> ACK with the nits fixed, so I pushed the adjusted patch.
>




More information about the libvir-list mailing list