1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00

cgroup should not be capitalized.

https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#terminology
This commit is contained in:
utam0k 2021-11-08 14:17:51 +09:00
parent f237d86c5b
commit e37554846c
No known key found for this signature in database
GPG Key ID: CE4B1272D0462168
2 changed files with 4 additions and 4 deletions

@ -32,7 +32,7 @@ impl Manager {
if let Ok(subsystem_path) = Self::get_subsystem_path(&cgroup_path, subsystem) {
subsystems.insert(subsystem.clone(), subsystem_path);
} else {
log::warn!("Cgroup {} not supported on this system", subsystem);
log::warn!("cgroup {} not supported on this system", subsystem);
}
}
@ -88,7 +88,7 @@ impl Manager {
if let Some(subsystem_path) = self.subsystems.get(controller) {
required_controllers.insert(controller, subsystem_path);
} else {
bail!("Cgroup {} is required to fullfill the request, but is not supported by this system", controller);
bail!("cgroup {} is required to fullfill the request, but is not supported by this system", controller);
}
}
}

@ -107,7 +107,7 @@ impl Mount {
.into_iter()
.filter(|p| p.as_path().starts_with(DEFAULT_CGROUP_ROOT))
.collect();
log::debug!("Cgroup mounts: {:?}", host_mounts);
log::debug!("cgroup mounts: {:?}", host_mounts);
// get process cgroups
let process_cgroups: HashMap<String, String> = Process::myself()?
@ -122,7 +122,7 @@ impl Mount {
.root
.join_safely(cgroup_mount.destination())
.context("could not join rootfs path with cgroup mount destination")?;
log::debug!("Cgroup root: {:?}", cgroup_root);
log::debug!("cgroup root: {:?}", cgroup_root);
let symlink = Symlink::new();