mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 14:54:19 +01:00
Merge pull request #4688 from quanweiZhou/fix_sandbox_cgroup_false
runtime-rs: fix sandbox_cgroup_only=false panic
This commit is contained in:
@@ -12,5 +12,5 @@
|
|||||||
// /sys/fs/cgroup/memory/kata_overhead/$CGPATH where $CGPATH is
|
// /sys/fs/cgroup/memory/kata_overhead/$CGPATH where $CGPATH is
|
||||||
// defined by the orchestrator.
|
// defined by the orchestrator.
|
||||||
pub(crate) fn gen_overhead_path(path: &str) -> String {
|
pub(crate) fn gen_overhead_path(path: &str) -> String {
|
||||||
format!("/kata_overhead/{}", path.trim_start_matches('/'))
|
format!("kata_overhead/{}", path.trim_start_matches('/'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user