]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Added support for named hierarchies to cgconfigparser.
authorJan Safranek <jsafrane@redhat.com>
Wed, 6 Apr 2011 06:37:45 +0000 (08:37 +0200)
committerJan Safranek <jsafrane@redhat.com>
Mon, 18 Apr 2011 12:14:19 +0000 (14:14 +0200)
commit701d76513412a4d8ae9d98cc9e7017fe4b9cc5d2
treee515a2e50cd2980824449b9d7e5ec0bd4f5f379b
parent437bc0486c2ed7a645e3155f20d41d89b077e2c7
Added support for named hierarchies to cgconfigparser.

Add the missing parts to make cgconfigparser able to mount named
hierarchies. It must add 'none' option to mount opts for mount without real
controller and with 'name=xxx' only, the rest (surprisingly) works out of the
box, only quoting needs special care.

Following cgconfig.conf is usable with the patch:
mount {
"name=test" = /cgroup/test;

"name=testwithcpu" = /cgroup/cpu;
cpu = /cgroup/cpu;
}

group foo {
"name=test" { }
"name=testwithcpu" { }
cpu { cpu.shares = 1024; }
}

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/config.c