cloud-hypervisor/block/src
Anatol Belski d5dad48618 block: Add sparse capability detection
Add functions to probe whether a file or block device actually
supports PUNCH_HOLE and ZERO_RANGE operations at runtime. The
probe is performed at file open time by testing the operations
at EOF with a zero-length range, which is a safe no-op.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
2026-02-13 18:44:30 +00:00
..
qcow block: qcow: Add resize unit tests 2026-02-12 22:47:00 +00:00
vhdx block: add DiskFile::physical_size() 2025-12-14 17:02:36 +00:00
async_io.rs block: Add punch_hole and write_zeroes to AsyncIo trait 2026-02-13 18:44:30 +00:00
fcntl.rs misc: clippy: add needless_pass_by_value (partially) 2025-11-25 16:05:46 +00:00
fixed_vhd.rs block: add DiskFile::physical_size() 2025-12-14 17:02:36 +00:00
fixed_vhd_async.rs block: Add punch_hole and write_zeroes to AsyncIo trait 2026-02-13 18:44:30 +00:00
fixed_vhd_sync.rs block: Add punch_hole and write_zeroes to AsyncIo trait 2026-02-13 18:44:30 +00:00
lib.rs block: Add sparse capability detection 2026-02-13 18:44:30 +00:00
qcow_sync.rs block: Add punch_hole and write_zeroes to AsyncIo trait 2026-02-13 18:44:30 +00:00
raw_async.rs block: Add punch_hole and write_zeroes to AsyncIo trait 2026-02-13 18:44:30 +00:00
raw_async_aio.rs block: Add punch_hole and write_zeroes to AsyncIo trait 2026-02-13 18:44:30 +00:00
raw_sync.rs block: Add punch_hole and write_zeroes to AsyncIo trait 2026-02-13 18:44:30 +00:00
vhd.rs tests: streamline module names to unit_tests 2025-11-20 21:15:03 +00:00
vhdx_sync.rs block: Add punch_hole and write_zeroes to AsyncIo trait 2026-02-13 18:44:30 +00:00