diff --git a/block/src/qcow_sync.rs b/block/src/qcow_sync.rs index 56c19307f..c75e895e8 100644 --- a/block/src/qcow_sync.rs +++ b/block/src/qcow_sync.rs @@ -298,6 +298,16 @@ impl disk_file::DiskFd for QcowDiskSync { impl disk_file::Geometry for QcowDiskSync {} +impl disk_file::SparseCapable for QcowDiskSync { + fn supports_sparse_operations(&self) -> bool { + true + } + + fn supports_zero_flag(&self) -> bool { + true + } +} + pub struct QcowSync { metadata: Arc, data_file: QcowRawFile,