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:
Tim Zhang
2020-11-09 15:47:25 +08:00
parent 121f78d8e8
commit 1ac76b69ba

View File

@@ -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");