disk_blockdevice

Function open_file_for_block

Source
pub fn open_file_for_block(path: &Path, read_only: bool) -> Result<File>
Expand description

Opens a file for use with BlockDevice or OpenBlockDeviceConfig.