diff options
author | Jan Safranek <jsafrane@redhat.com> | 2009-08-04 14:28:15 +0200 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-08-06 11:57:48 +0530 |
commit | 6c4f6a3e4cf680c2bd488d4121ff4871bd711435 (patch) | |
tree | 9ad66dda7d9db8207445f4482108b9fd22d1759a /dist | |
parent | 40716a24b737e55422b31b926996720ed9bca6bb (diff) | |
download | libcg-6c4f6a3e4cf680c2bd488d4121ff4871bd711435.tar.gz libcg-6c4f6a3e4cf680c2bd488d4121ff4871bd711435.tar.xz libcg-6c4f6a3e4cf680c2bd488d4121ff4871bd711435.zip |
Add recursive cgroup_delete_cgroup_ext.
Changelog:
- add braces to cgroup_delete_cgroup_ext to improve readability
- use enum instead of macro to define flags
The new function allows to recursively delete whole tree of groups. There is
new infrastructure created around (cg_delete_cgroup_controller_recursive).
It has inconsistent behavior when root group removal is requested - it removes
all children (if requested), but does not remove the root itself and returns
success value. This allows simple rewrite of cgclear functions to use this
function.
Original cgroup_delete_cgroup now leads to cgroup_delete_cgroup_ext.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions