commit | 72b6f19b60b5d82949f47934cc6fdbb89dba0cef | [log] [tgz] |
---|---|---|
author | Garrett Cooper <yanegomi@gmail.com> | Thu Jun 09 08:12:29 2011 -0700 |
committer | Garrett Cooper <yanegomi@gmail.com> | Thu Jun 09 08:12:29 2011 -0700 |
tree | bca1349fa17be48340fa69f547613c5a61ebeede | |
parent | 17f771093b0af50e5e4e2519ee53e87c47879017 [diff] |
Add check to see if cgroup fs mounting is available in kernel. cgroup filesystem is used in testcases oom03 and oom04, but cgroup filesystem is not supported in kernel older than 2.6.24. Instead of just checking the version, we should check the appropriate error after running mount(2) to also cover cases where cgroup support wasn't compiled into the kernel with versions newer than 2.6.24. Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>