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

Function l2_entry_is_zero

block/src/qcow/util.rs:30–32  ·  view source on GitHub ↗

Check bit 0 - only valid for standard clusters.

(l2_entry: u64)

Source from the content-addressed store, hash-verified

28
29/// Check bit 0 - only valid for standard clusters.
30pub(super) fn l2_entry_is_zero(l2_entry: u64) -> bool {
31 l2_entry & ZERO_FLAG != 0
32}
33
34/// Check if L2 entry refers to a compressed cluster.
35pub(super) fn l2_entry_is_compressed(l2_entry: u64) -> bool {

Callers 7

file_readMethod · 0.85
file_offset_writeMethod · 0.85
deallocate_clusterMethod · 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