mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block: qcow: Port to AlignedBuffer
Replace the qcow specific AlignedBuf along with the pread64/pwrite64 helpers with the new common AlignedBuffer implementation. Assisted-by: Claude:Opus-4.6 Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -102,7 +102,6 @@ impl AlignedBuffer {
|
||||
}
|
||||
|
||||
/// Read the full aligned region from `f` into this buffer.
|
||||
#[cfg_attr(not(test), expect(dead_code))]
|
||||
pub fn read_exact_from(&mut self, f: &impl FileExt) -> io::Result<()> {
|
||||
let offset = self.aligned_offset;
|
||||
f.read_exact_at(self.full_mut_slice(), offset)
|
||||
|
||||
Reference in New Issue
Block a user