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

Function l2_entry_is_compressed

block/src/qcow/util.rs:35–37  ·  view source on GitHub ↗

Check if L2 entry refers to a compressed cluster.

(l2_entry: u64)

Source from the content-addressed store, hash-verified

33
34/// Check if L2 entry refers to a compressed cluster.
35pub(super) fn l2_entry_is_compressed(l2_entry: u64) -> bool {
36 l2_entry & COMPRESSED_FLAG != 0
37}
38
39/// Get file offset and size of compressed cluster data.
40pub(super) fn l2_entry_compressed_cluster_layout(l2_entry: u64, cluster_bits: u32) -> (u64, usize) {

Callers 8

file_readMethod · 0.85
file_offset_writeMethod · 0.85
deallocate_clusterMethod · 0.85
corrupt_l2_entryFunction · 0.85
try_map_readMethod · 0.85
map_writeMethod · 0.85
deallocate_clusterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected