]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/cgroups/cgfs.c
cgroup: Split legacy 'ns' cgroup handling off from main cgroup handling
authorChristian Seiler <christian@iwakd.de>
Wed, 11 Sep 2013 23:44:42 +0000 (01:44 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 12 Sep 2013 16:45:34 +0000 (11:45 -0500)
commit47d8fb3be090fc99118bb7fea8cb12b3e2194999
tree2bd918b852b4c1245b7229b21ff0736dc8b08df2
parent24b514827d8fb6a11521da3f29b80b25c488e8c6
cgroup: Split legacy 'ns' cgroup handling off from main cgroup handling

This patch splits off ns legacy cgroup handling from main cgroup
handling. It moves the creation of the cgroups before clone(), so that
the child will easily know which cgroups it will later belong to. Since
this is not possible for the renaming of the 'ns' cgroup, keep that
part after clone.

Signed-off-by: Christian Seiler <christian@iwakd.de>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c
src/lxc/cgroup.h
src/lxc/start.c