get_actual_device_name

Function get_actual_device_name 

Source
fn get_actual_device_name(device: &OsStr) -> String
Expand description

Resolves the actual device name for a specified device from /proc/mounts

This function is inspired by the bottom crate implementation and essentially does the following: 1. Canonicalizes the specified device path to its absolute form 2. Strips the “/dev” prefix from the canonicalized path