Home
last modified time | relevance | path

Searched refs:chunk_index (Results 1 – 5 of 5) sorted by relevance

/aosp12/packages/modules/Virtualization/authfs/src/file/
H A Dremote_file.rs33 chunk_index: u64, in remote_read_chunk()
36 let offset = i64::try_from(chunk_index * CHUNK_SIZE) in remote_read_chunk()
62 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
63 remote_read_chunk(&self.service, self.file_fd, chunk_index, buf) in read_chunk()
81 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
82 let offset = i64::try_from(chunk_index * CHUNK_SIZE) in read_chunk()
135 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
136 remote_read_chunk(&self.service, self.file_fd, chunk_index, buf) in read_chunk()
H A Dlocal_file.rs44 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
45 let start = chunk_index * CHUNK_SIZE; in read_chunk()
/aosp12/packages/modules/Virtualization/authfs/src/fsverity/
H A Dverifier.rs41 chunk_index: u64, in verity_check()
52 fsverity_walk(chunk_index, file_size, merkle_tree)?.try_fold( in verity_check()
72 chunk_index: u64,
87 let offset_in_level = (chunk_index / leaves_per_hash) * Sha256Hasher::HASH_SIZE as u64;
97 let chunk_index = global_hash_offset / CHUNK_SIZE; localVariable
99 (chunk_index, hash_offset_in_chunk)
103 Ok(root_to_leaf_steps.into_iter().rev().map(move |(chunk_index, hash_offset_in_chunk)| {
108 let _ = merkle_tree.read_chunk(chunk_index, &mut merkle_chunk)?;
160 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
161 let size = self.chunked_file.read_chunk(chunk_index, buf)?; in read_chunk()
[all …]
H A Deditor.rs235 let chunk_index = size / CHUNK_SIZE; in resize() localVariable
238 let s = self.read_chunk(chunk_index, &mut buf)?; in resize()
246 merkle_tree.update_hash(chunk_index as usize, &new_hash, size); in resize()
258 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
259 self.file.read_chunk(chunk_index, buf) in read_chunk()
306 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk()
314 .nth(chunk_index as usize) in read_chunk()
318 format!("read_chunk out of bound: index {}", chunk_index), in read_chunk()
/aosp12/packages/modules/Virtualization/authfs/src/
H A Dfile.rs28 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize>; in read_chunk()