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

Method l2_table_index

block/src/qcow/metadata.rs:591–593  ·  view source on GitHub ↗
(&self, address: u64)

Source from the content-addressed store, hash-verified

589 }
590
591 fn l2_table_index(&self, address: u64) -> u64 {
592 (address / self.raw_file.cluster_size()) % self.l2_entries
593 }
594
595 // -- Cache and allocation operations requiring exclusive access --
596

Callers 4

try_map_readMethod · 0.45
map_writeMethod · 0.45
deallocate_clusterMethod · 0.45

Calls 1

cluster_sizeMethod · 0.45

Tested by

no test coverage detected