mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Rob Bradford
parent
fa700f6493
commit
52cd45874a
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user