find_parent_devices

Function find_parent_devices 

Source
pub fn find_parent_devices(device: &str) -> Result<Vec<String>>
Expand description

This is a bit fuzzy, but… this function will return every block device in the parent hierarchy of device capable of containing other partitions. So e.g. parent devices of type “part” doesn’t match, but “disk” and “mpath” does.