]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
There is a problem in cgroup_init function
authorIvana Hutarova Varekova <varekova@redhat.com>
Fri, 24 Sep 2010 05:38:12 +0000 (11:08 +0530)
committerBalbir Singh <balbir@linux.vnet.ibm.com>
Fri, 24 Sep 2010 05:38:12 +0000 (11:08 +0530)
commite7bc3d94afbec90ce5c7c07dff7070ccdc546032
tree5ef93e2d961b161838c0cf693a2e4efe9441e1a2
parentaf53a11e8e5f27593f31a34739756d41a08b5416
There is a problem in cgroup_init function
   Now if the function strtok_r get at first the controller which
precedes some other controllers on the mount-point option list,
then it removes all next controllers from the list and they are omitted.
   The test which is done by strtok_r is redundant (there is already
hasmntopt test), so the patch is removing it at all.

 E.G. use commands:

$ mount -t cgroup -o cpu,memory,net_cls lab1 /cgroup/lab1
$ mount -t cgroup -o remount,cpuset,cpu,memory,net_cls lab1 /cgroup/lab1
$ lssubsys -ma

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
src/api.c