summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorBalbir Singh <balbir@linux.vnet.ibm.com>2009-02-21 15:34:24 +0000
committerBalbir Singh <balbir@linux.vnet.ibm.com>2009-02-21 15:34:24 +0000
commit74f9a91b6bccc558ed90d02ae15cd2c9d49267cb (patch)
tree761cdbbea233d06a9b4317fb77be6fc6880fd166 /samples
parent5ef29f580daf9c8d5e6a8af096fb30b1cf9a3aa5 (diff)
downloadlibcg-74f9a91b6bccc558ed90d02ae15cd2c9d49267cb.tar.gz
libcg-74f9a91b6bccc558ed90d02ae15cd2c9d49267cb.tar.xz
libcg-74f9a91b6bccc558ed90d02ae15cd2c9d49267cb.zip
Impact: Fix the parsing issue when two or more values are specified
This patch fixes an issue where when two or more values are specified for the controllers, only the last one is applied. This patch fixes that issue. The parser is modified to collate all the name value pairs, seperated by ":". The reason for implementing it this way is because we need to pass the controller name and splitting the rules would make it very hard to pass the controller name to each rule, irrespective of where the controller name was parsed. Tested with the following config file group default { perm { task { uid = root; gid = root; } admin { uid = root; gid = root; } } cpu { cpu.shares = 2048; } cpuset { cpuset.mems=0; cpuset.cpus=0-1; } } mount { cpu = /cgroup/cpu; cpuacct = /cgroup/cpu; cpuset = /cgroup/cpu; } Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@336 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions