Re: [libvirt-python 09/18] virNodeGetCPUMap API not added until 1.0.0

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

 



On Tue, Nov 19, 2013 at 9:19 AM, Eric Blake <eblake@xxxxxxxxxx> wrote:
> On 11/18/2013 03:44 PM, Doug Goldstein wrote:
>> ---
>>  libvirt-override.c | 6 +++++-
>>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> ACK.
>
>> +#if LIBVIR_CHECK_VERSION(1,0,0)
>
> Style-wise, I would have written LIBVIR_CHECK_VERSION(1, 0, 0), but I'm
> not sure the whitespace difference matters.

I'll make that change for the whole series.


>
>>      LIBVIRT_BEGIN_ALLOW_THREADS;
>>      i_retval = virNodeGetCPUMap(conn, NULL, NULL, 0);
>>      LIBVIRT_END_ALLOW_THREADS;
>> +#endif /* LIBVIR_CHECK_VERSION(1,0,0) */
>>
>>      if (i_retval < 0) {
>>          /* fallback: use nodeinfo */
>
> Works because of the fallback code (we have to call at least one libvirt
> function before returning error so that the libvirt error api has
> something to report).
>
> --
> Eric Blake   eblake redhat com    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
>


-- 
Doug Goldstein

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