]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix check for existance of cgroups at creation
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 12 Nov 2009 14:11:43 +0000 (14:11 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 13 Nov 2009 11:50:12 +0000 (11:50 +0000)
commitd11d93f406fecfba685314fedc338b5a70ed4a25
treef270ecd1b27237673bf411942502a30011a9715b
parentfd2090cdb9aa2cef0c678b04a64563242615157a
Fix check for existance of cgroups at creation

In the scenario where the cgroups were mounted but the
particular group did not exist, and the caller had not
requested auto-creation, the code would fail to return
an error condition. This caused the lxc_controller to
think the cgroup existed, and it then later failed when
attempting to use it

* src/util/cgroup.c: Raise an error if the cgroup path does not
  exist
src/util/cgroup.c