Home
last modified time | relevance | path

Searched refs:max_valid_cluster_index (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/crosvm/disk/src/qcow/
H A Drefcount.rs67 let max_valid_cluster_index = (ref_table.len() as u64) * refcount_block_entries - 1; in new() localVariable
68 let max_valid_cluster_offset = max_valid_cluster_index * cluster_size; in new()
H A Dmod.rs932 let mut max_valid_cluster_index = max_clusters; in rebuild_refcounts() localVariable
933 let refblock_clusters = max_valid_cluster_index.div_ceil(refcount_block_entries); in rebuild_refcounts()
939 max_valid_cluster_index += refblock_clusters + reftable_clusters; in rebuild_refcounts()
940 max_valid_cluster_index += refblocks_for_refs + reftable_clusters_for_refs; in rebuild_refcounts()
942 if max_valid_cluster_index > MAX_RAM_POINTER_TABLE_SIZE { in rebuild_refcounts()
943 return Err(Error::InvalidRefcountTableSize(max_valid_cluster_index)); in rebuild_refcounts()
946 let max_valid_cluster_offset = max_valid_cluster_index * cluster_size; in rebuild_refcounts()
951 let mut refcounts = vec![0; max_valid_cluster_index as usize]; in rebuild_refcounts()