Skip to main content

list_mounts

Function list_mounts 

Source
pub fn list_mounts() -> Vec<MountEntry>
Expand description

Enumerate all mounts visible to the current process.

Uses statmount(2) / listmount(2) on Linux >= 6.8 for direct kernel queries, falling back to /proc/self/mountinfo parsing on older kernels.