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:
Rob Bradford
2026-06-09 23:14:38 +01:00
parent 2e2167368e
commit 108d251c1d
4 changed files with 26 additions and 339 deletions

View File

@@ -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)