]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virCgroupValidateMachineGroup: Reflect change in CGroup struct naming
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 5 May 2016 15:35:38 +0000 (17:35 +0200)
committerCole Robinson <crobinso@redhat.com>
Mon, 27 Jun 2016 18:36:04 +0000 (14:36 -0400)
commit7e20f44d8da1634aabec68437854a8810bc28f44
tree00194a95d76252f3d3ac8f0d27a4850bb23ac597
parent64fd06e907bef1f99e46881b9f747041b34101fc
virCgroupValidateMachineGroup: Reflect change in CGroup struct naming

Fron c3bd0019c0e on instead of creating the following path for
cgroups:

  /sys/fs/cgroupX/$name.libvirt-$driver

we generate rather more verbose one:

  /sys/fs/cgroupX/$driver-$id-$name.libvirt-$driver

where $name is optional and included iff contains allowed chars.
See original commit for more reasoning. Now, problem with the
original commit is that we are unable to start any LXC domain
after it. Because when starting LXC container, the CGroup layout
is created by our lxc_controller process and then detected and
validated by libvirtd. The validation is done by trying to match
detected layout against all the possible patterns for cgroup
paths that we've ever had. And the commit in question forgot to
update this part of the code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
(cherry picked from commit fb377701f253559268e903377707ed3d265823cd)
src/util/vircgroup.c