]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix failure to detect missing cgroup partitions
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 16 May 2013 17:47:07 +0000 (18:47 +0100)
committerJim Fehlig <jfehlig@suse.com>
Thu, 11 Jul 2013 16:39:45 +0000 (10:39 -0600)
commit0616172bdffee9e1c3a508be3091c59bf0d686bb
treebf2c9ef669c13c8c9576cbfca94f299224c9c629
parent68d92eea16223d29627934a0169bff15795dda96
Fix failure to detect missing cgroup partitions

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@redhat.com>
(cherry picked from commit c2cf5f1c2abc81d607abe34bf5dc4c615a9b8b4d)
src/qemu/qemu_cgroup.c
src/util/vircgroup.c