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

Method unallocated_read_mapping

block/src/qcow/metadata.rs:491–507  ·  view source on GitHub ↗
(
        &self,
        address: u64,
        count: usize,
        has_backing_file: bool,
    )

Source from the content-addressed store, hash-verified

489 }
490
491 fn unallocated_read_mapping(
492 &self,
493 address: u64,
494 count: usize,
495 has_backing_file: bool,
496 ) -> ClusterReadMapping {
497 if has_backing_file {
498 ClusterReadMapping::Backing {
499 offset: address,
500 length: count as u64,
501 }
502 } else {
503 ClusterReadMapping::Zero {
504 length: count as u64,
505 }
506 }
507 }
508
509 /// Maps a single cluster region for a sequential read.
510 pub(crate) fn map_cluster_read(

Callers 2

try_map_readMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected