block: qcow_async: impl SparseCapable for QcowDiskAsync

QCOW2 images support both sparse operations and the zero flag.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-20 17:50:00 +01:00
committed by Rob Bradford
parent fa700f6493
commit 52cd45874a

View File

@@ -91,3 +91,13 @@ impl disk_file::DiskFd for QcowDiskAsync {
}
impl disk_file::Geometry for QcowDiskAsync {}
impl disk_file::SparseCapable for QcowDiskAsync {
fn supports_sparse_operations(&self) -> bool {
true
}
fn supports_zero_flag(&self) -> bool {
true
}
}