Function block_utils::get_block_devices_iter[][src]

pub fn get_block_devices_iter() -> BlockResult<impl Iterator<Item = PathBuf>>
Expand description

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

Lazy version of get_block_devices()