kata-containers / cgroups-rs

Native Rust library for managing control groups under Linux
https://crates.io/crates/cgroups-rs
Other
116 stars 47 forks source link

fix: support FreezerController in cgroups v2 #61

Closed mjerabek closed 2 years ago

mjerabek commented 3 years ago

FreezerController implements the functionality for cgroups v2, but the freezer subsystem is not instantiated, because there is no "freezer" controller in cgroup.controllers (the functionality is supported via cgroup.freeze, which is not part of any controller).

This PR forces the "freezer" controller for cgroups v2.

Tim-Zhang commented 2 years ago

@liubin PTAL

mjerabek commented 2 years ago

I have fixed the commit message (added Signed-off-by). The unrelated clippy failure should probably be fixed in its own PR.

Tim-Zhang commented 2 years ago

LGTM thanks @mjerabek