[][src]Function sys_metrics::disks::get_partitions_physical

pub fn get_partitions_physical() -> Result<Vec<Disks>, Error>

Return a Vec of Disks with their minimal informations.

Contains name, mount_point and total/free space.

On linux it will get them from /proc/mounts.

On macOS it will use an unsafe call to getfsstat64.