Home
last modified time | relevance | path

Searched refs:max_valid_cluster_offset (Results 1 – 3 of 3) sorted by relevance

/aosp_15_r20/external/crosvm/disk/src/qcow/
H A Drefcount.rs47 max_valid_cluster_offset: u64, field
68 let max_valid_cluster_offset = max_valid_cluster_index * cluster_size; in new() localVariable
75 max_valid_cluster_offset, in new()
85 pub fn max_valid_cluster_offset(&self) -> u64 { in max_valid_cluster_offset() method
86 self.max_valid_cluster_offset in max_valid_cluster_offset()
H A Dqcow_raw_file.rs115 pub fn add_cluster_end(&mut self, max_valid_cluster_offset: u64) -> io::Result<Option<u64>> { in add_cluster_end()
121 if new_cluster_address > max_valid_cluster_offset { in add_cluster_end()
H A Dmod.rs946 let max_valid_cluster_offset = max_valid_cluster_index * cluster_size; in rebuild_refcounts() localVariable
947 if max_valid_cluster_offset < file_size - cluster_size { in rebuild_refcounts()
948 return Err(Error::InvalidRefcountTableSize(max_valid_cluster_offset)); in rebuild_refcounts()
1169 let max_valid_cluster_offset = self.refcounts.max_valid_cluster_offset(); in get_new_cluster() localVariable
1170 if let Some(new_cluster) = self.raw_file.add_cluster_end(max_valid_cluster_offset)? { in get_new_cluster()