Function mprober_lib::volume::get_mounts[][src]

pub fn get_mounts() -> Result<HashMap<String, Vec<String>>, ScannerError>

Get mounting points of all block devices by reading the /proc/mounts file.

extern crate mprober_lib;

use mprober_lib::volume;

let mounts = volume::get_mounts().unwrap();

println!("{:#?}", mounts);