get_parent_devpath_from_path

Function get_parent_devpath_from_path 

Source
pub fn get_parent_devpath_from_path(
    dev_path: impl AsRef<Path>,
) -> BlockResult<Option<PathBuf>>
Expand description

get the parent device path from a device path (If not a partition or disk, return None)