mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
cgroup: support to set threaded mode in cgroup v2
Support to set threaded mode in cgroup v2. The premise of switching to threaded mode is that only the cgroup of cpuset, cpu and pids is supported. Fixes: #90 Signed-off-by: yaoyinnan <yaoyinnan@foxmail.com>
This commit is contained in:
12
src/error.rs
12
src/error.rs
@@ -51,6 +51,18 @@ pub enum ErrorKind {
|
||||
#[error("invalid bytes size")]
|
||||
InvalidBytesSize,
|
||||
|
||||
/// The specified controller is not in the list of supported controllers.
|
||||
#[error("specified controller is not in the list of supported controllers")]
|
||||
SpecifiedControllers,
|
||||
|
||||
/// Using method in wrong cgroup version.
|
||||
#[error("using method in wrong cgroup version")]
|
||||
CgroupVersion,
|
||||
|
||||
/// Subsystems is empty.
|
||||
#[error("subsystems is empty")]
|
||||
SubsystemsEmpty,
|
||||
|
||||
/// An unknown error has occured.
|
||||
#[error("an unknown error")]
|
||||
Other,
|
||||
|
||||
Reference in New Issue
Block a user