mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
Make function find_v1_mount pub
The function find_v1_mount is useful for customized impl for Hierarchy. Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
@@ -265,7 +265,7 @@ pub fn auto() -> Box<dyn Hierarchy> {
|
||||
}
|
||||
}
|
||||
|
||||
fn find_v1_mount() -> Option<String> {
|
||||
pub fn find_v1_mount() -> Option<String> {
|
||||
// Open mountinfo so we can get a parseable mount list
|
||||
let mountinfo_path = Path::new("/proc/self/mountinfo");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user