From 3e904d7a279095b48c905165678424bdccf4fef0 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 25 Mar 2026 16:41:37 +0100 Subject: [PATCH] block: vhdx: impl SparseCapable for VhdxDiskSync VHDX does not support sparse operations. Signed-off-by: Anatol Belski --- block/src/vhdx_sync.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/src/vhdx_sync.rs b/block/src/vhdx_sync.rs index 9f1e952c2..c3b04c9d1 100644 --- a/block/src/vhdx_sync.rs +++ b/block/src/vhdx_sync.rs @@ -68,6 +68,8 @@ impl disk_file::DiskFd for VhdxDiskSync { impl disk_file::Geometry for VhdxDiskSync {} +impl disk_file::SparseCapable for VhdxDiskSync {} + impl DiskFile for VhdxDiskSync { fn logical_size(&mut self) -> DiskFileResult { Ok(self.vhdx_file.lock().unwrap().virtual_disk_size())