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

Function l2_entry_is_empty

block/src/qcow/util.rs:25–27  ·  view source on GitHub ↗

Check if L2 entry is empty (unallocated).

(l2_entry: u64)

Source from the content-addressed store, hash-verified

23
24/// Check if L2 entry is empty (unallocated).
25pub(super) fn l2_entry_is_empty(l2_entry: u64) -> bool {
26 l2_entry == 0
27}
28
29/// Check bit 0 - only valid for standard clusters.
30pub(super) fn l2_entry_is_zero(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