Function diskotech::by_label

source ·
pub fn by_label(data: &mut Map) -> Result<()>
Expand description

Get map of disk labels (mydisk, etc.) to logical name (/dev/sda, etc.). Equivalent to running ls -l /dev/disk/by-label.

Errors

Returns an error if any of the file I/O fails.