pub fn get_mounts() -> Result<HashMap<String, Vec<String>>, ScannerError>Expand description
Get mounting points of all block devices by reading the /proc/mounts file.
use mprober_lib::volume;
let mounts = volume::get_mounts().unwrap();
println!("{mounts:#?}");