Function mprober_lib::volume::get_volumes[][src]

pub fn get_volumes() -> Result<Vec<Volume>, ScannerError>

Get volume information by reading the /proc/diskstats file and using the statvfs function in libc.

extern crate mprober_lib;

use mprober_lib::volume;

let volumes = volume::get_volumes().unwrap();

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