Function linux_info::storage::sector_size
source · pub fn sector_size(path: impl AsRef<Path>) -> Result<u64>
Expand description
Returns the sector size for a given path.
This uses the ioctl call BLKSSZGET
.
pub fn sector_size(path: impl AsRef<Path>) -> Result<u64>
Returns the sector size for a given path.
This uses the ioctl call BLKSSZGET
.