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:
parent
f237d86c5b
commit
e37554846c
@ -32,7 +32,7 @@ impl Manager {
|
|||||||
if let Ok(subsystem_path) = Self::get_subsystem_path(&cgroup_path, subsystem) {
|
if let Ok(subsystem_path) = Self::get_subsystem_path(&cgroup_path, subsystem) {
|
||||||
subsystems.insert(subsystem.clone(), subsystem_path);
|
subsystems.insert(subsystem.clone(), subsystem_path);
|
||||||
} else {
|
} 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) {
|
if let Some(subsystem_path) = self.subsystems.get(controller) {
|
||||||
required_controllers.insert(controller, subsystem_path);
|
required_controllers.insert(controller, subsystem_path);
|
||||||
} else {
|
} 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()
|
.into_iter()
|
||||||
.filter(|p| p.as_path().starts_with(DEFAULT_CGROUP_ROOT))
|
.filter(|p| p.as_path().starts_with(DEFAULT_CGROUP_ROOT))
|
||||||
.collect();
|
.collect();
|
||||||
log::debug!("Cgroup mounts: {:?}", host_mounts);
|
log::debug!("cgroup mounts: {:?}", host_mounts);
|
||||||
|
|
||||||
// get process cgroups
|
// get process cgroups
|
||||||
let process_cgroups: HashMap<String, String> = Process::myself()?
|
let process_cgroups: HashMap<String, String> = Process::myself()?
|
||||||
@ -122,7 +122,7 @@ impl Mount {
|
|||||||
.root
|
.root
|
||||||
.join_safely(cgroup_mount.destination())
|
.join_safely(cgroup_mount.destination())
|
||||||
.context("could not join rootfs path with 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();
|
let symlink = Symlink::new();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user