mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Implement punch_hole() and write_zeroes() for raw file backends using io_uring and fallocate. punch_hole() uses FALLOC_FL_PUNCH_HOLE to deallocate storage. write_zeroes() uses FALLOC_FL_ZERO_RANGE to write zeros efficiently. Both use FALLOC_FL_KEEP_SIZE to maintain file size. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>