Re: [PATCH] Wire up sysinfo for LXC driver

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

 



On 04/03/2013 11:59 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>
> 
> The sysinfo code used by QEMU is trivially portable to the
> LXC driver
> ---
>  src/lxc/lxc_conf.h   |  3 +++
>  src/lxc/lxc_driver.c | 29 +++++++++++++++++++++++++++++
>  2 files changed, 32 insertions(+)

ACK.


> +
> +    if (virSysinfoFormat(&buf, driver->hostsysinfo) < 0)
> +        return NULL;
> +    if (virBufferError(&buf)) {
> +        virReportOOMError();

Looks like virBufferError() in another one of those functions like
VIR_ALLOC and VIR_STRDUP where we ought to factor error handling into
the common function, and add a quiet variant for the outliers - but
that's for Michal to worry about in his series.

-- 
Eric Blake   eblake redhat com    +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]