Home
last modified time | relevance | path

Searched refs:read_chunk (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Virtualization/authfs/src/file/
Dlocal_file.rs44 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk() method
66 let size = file_reader.read_chunk(0, &mut buf)?; in test_read_4k_file()
75 let size = file_reader.read_chunk(0, &mut buf)?; in test_read_4k1_file()
77 let size = file_reader.read_chunk(1, &mut buf)?; in test_read_4k1_file()
87 let size = file_reader.read_chunk(index, &mut buf)?; in test_read_4m_file()
97 let size = file_reader.read_chunk(1u64, &mut buf)?; in test_read_beyond_file_size()
108 let size = file_reader.read_chunk(0, &mut buf)?; in test_read_empty_file()
Dremote_file.rs62 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk() method
81 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk() method
135 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk() method
/packages/modules/Virtualization/authfs/src/fsverity/
Dverifier.rs108 let _ = merkle_tree.read_chunk(chunk_index, &mut merkle_chunk)?;
144 let size = merkle_tree.read_chunk(0, &mut buf)?; in new()
160 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk() method
161 let size = self.chunked_file.read_chunk(chunk_index, buf)?; in read_chunk()
215 assert!(file_reader.read_chunk(i, &mut buf).is_ok()); in fsverity_verify_full_read_4k()
230 assert!(file_reader.read_chunk(i, &mut buf).is_ok()); in fsverity_verify_full_read_4k1()
245 assert!(file_reader.read_chunk(i, &mut buf).is_ok()); in fsverity_verify_full_read_4m()
264 assert!(file_reader.read_chunk(i, &mut buf).is_err()); in fsverity_verify_bad_merkle_tree()
266 assert!(file_reader.read_chunk(last_index, &mut buf).is_ok()); in fsverity_verify_bad_merkle_tree()
Deditor.rs113 self.read_chunk(output_chunk_index as u64, &mut orig_data)?; in new_hash_for_incomplete_write()
238 let s = self.read_chunk(chunk_index, &mut buf)?; in resize()
258 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize> { in read_chunk() method
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() method
/packages/modules/Virtualization/authfs/src/
Dfile.rs28 fn read_chunk(&self, chunk_index: u64, buf: &mut ChunkBuffer) -> io::Result<usize>; in read_chunk() method
Dfusefs.rs159 let read_size = file.read_chunk(offset_to_chunk_index(current_offset), &mut buf)?; in read_chunks()