get_block_partitions

Function get_block_partitions 

Source
pub fn get_block_partitions() -> BlockResult<Vec<PathBuf>>
Expand description

Scan a system and return all block devices that udev knows about This function will only retun the udev devices identified as partition. If it can’t discover this it will error on the side of caution and return the device

Non-lazy version of get_block_partitions