MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / map_cluster_read

Method map_cluster_read

block/src/qcow/metadata.rs:510–520  ·  view source on GitHub ↗

Maps a single cluster region for a sequential read.

(
        &mut self,
        address: u64,
        count: usize,
        has_backing_file: bool,
    )

Source from the content-addressed store, hash-verified

508
509 /// Maps a single cluster region for a sequential read.
510 pub(crate) fn map_cluster_read(
511 &mut self,
512 address: u64,
513 count: usize,
514 has_backing_file: bool,
515 ) -> io::Result<ClusterReadMapping> {
516 match self.try_map_read(address, count, has_backing_file)? {
517 Some(mapping) => Ok(mapping),
518 None => self.map_read_with_populate(address, count, has_backing_file),
519 }
520 }
521
522 /// Write path mapping. Always called under write lock.
523 fn map_write(

Callers 1

read_at_innerMethod · 0.80

Calls 2

try_map_readMethod · 0.80

Tested by

no test coverage detected