Skip to main content

parse_mount_output

Function parse_mount_output 

Source
pub fn parse_mount_output(text: &str) -> HashMap<String, String>
Expand description

Parse the output of the mount command into a map of device identifier → mount point.

Each line has the form: /dev/disk2s2 on /Volumes/MyData (ntfs, local, …)