Skip to main content

sector_write

Function sector_write 

Source
fn sector_write<D: BlockDevice>(
    dev: &D,
    offset: u64,
    data: &[u8],
) -> Result<usize, BlockError>
Expand description

Write data bytes to the block device starting at byte offset.

For aligned multi-sector ranges, uses the bulk write_sectors method. Partial-sector writes fall back to read-modify-write.