This patchset adds cgroup v2 support to cgclear.

I think it's best to continue support of cgclear through one
more release, but long term I think this is a tool that should
be deprecated.  It was written at a time when controllers
weren't automatically and the creating/deleting of cgroups was
more onerous.  Now with systemd providing cgroup management,
cgclear no longer makes sense.

Changes from v1 to v2:
* Removed hardcoded "name=systemd" from config logic
* Set the opaque hierarchy to "name=systemd" so that systemd
  hierarchies are ignore.  Thanks, Michal.

The code changes are available here:
https://github.com/drakenclimber/libcgroup/tree/issues/cgclear2

The automated test changes are available here:
https://github.com/drakenclimber/libcgroup-tests/tree/issues/cgclear

The automated tests are passing and the results are available
here:
https://github.com/drakenclimber/libcgroup/runs/2221320392

Overall code coverage increased from 46.4% to 50.7%.  Coverage
on cgclear.c now stands at 40.0%:
https://coveralls.io/builds/38349616

Tom Hromatka (3):
  config.c: Add cgroup v2 support to cgclear
  bootstrap: github: Ignore systemd hierarchy
  github: Run the cgclear functional test last

 .github/actions/setup-libcgroup/action.yml   |  2 +-
 .github/workflows/continuous-integration.yml | 12 ++++++++++--
 bootstrap.sh                                 |  3 ++-
 src/config.c                                 |  9 +++++++++
 4 files changed, 22 insertions(+), 4 deletions(-)

-- 
2.26.2



_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to