block: Add raw_async_io_tests shared test helpers

Add raw_async_io_tests.rs with punch_hole, write_zeroes, and
multiple_operations helpers that take &mut dyn AsyncIo + &mut File.
These are raw-backend-specific. They verify data by reading the
underlying file directly, which only works for plain file backends
without container format metadata.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-14 12:05:17 +01:00
committed by Rob Bradford
parent c53bc3d170
commit 5aa68ddf9e
2 changed files with 164 additions and 0 deletions

View File

@@ -24,6 +24,8 @@ pub mod qcow_sync;
/// Enabled with the `"io_uring"` feature
pub mod raw_async;
pub mod raw_async_aio;
#[cfg(test)]
mod raw_async_io_tests;
pub mod raw_sync;
pub mod vhd;
pub mod vhdx;