mirror of
https://github.com/containers/youki
synced 2024-11-23 09:21:57 +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:
parent
f237d86c5b
commit
e37554846c
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user