Skip to main content

find_mount_for_path

Function find_mount_for_path 

Source
pub fn find_mount_for_path(path: &Path) -> Option<MountEntry>
Expand description

Find the mount entry whose mount_point is the longest prefix of path.

This is the common “find covering mount” operation used by all four existing mountinfo parsers.