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

Method l2_table_index

block/src/qcow/mod.rs:1378–1380  ·  view source on GitHub ↗

Gets the offset of `address` in the L2 table.

(&self, address: u64)

Source from the content-addressed store, hash-verified

1376
1377 // Gets the offset of `address` in the L2 table.
1378 fn l2_table_index(&self, address: u64) -> u64 {
1379 (address / self.raw_file.cluster_size()) % self.l2_entries
1380 }
1381
1382 /// Attempts to set the corrupt bit, logging failures without propagating them.
1383 ///

Callers 4

file_readMethod · 0.45
file_offset_writeMethod · 0.45
cluster_allocatedMethod · 0.45
deallocate_clusterMethod · 0.45

Calls 1

cluster_sizeMethod · 0.45

Tested by

no test coverage detected