[libvirt] [PATCH] Fix failure to detect missing cgroup partitions

Eric Blake eblake at redhat.com
Thu May 16 20:02:32 UTC 2013


On 05/16/2013 11:49 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> Change bbe97ae968eba60b71e0066d49f9fc909966d9d6 caused the
> QEMU driver to ignore ENOENT errors from cgroups, in order
> to cope with missing /proc/cgroups. This is not good though
> because many other things can cause ENOENT and should not
> be ignored. The callers expect to see ENXIO when cgroups
> are not present, so adjust the code to report that errno
> when /proc/cgroups is missing
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/qemu/qemu_cgroup.c | 3 +--
>  src/util/vircgroup.c   | 7 ++++++-
>  2 files changed, 7 insertions(+), 3 deletions(-)
> 

ACK.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130516/ff23f292/attachment-0001.sig>


More information about the libvir-list mailing list