]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/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)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 17 May 2013 09:25:15 +0000 (10:25 +0100)
commitc2cf5f1c2abc81d607abe34bf5dc4c615a9b8b4d
treeaae72dc633d06aa84c30614ca6eb9fae2b200a06
parent7bebd888716315e377f0b7ca5f5f0772a3524324
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>
src/qemu/qemu_cgroup.c
src/util/vircgroup.c