mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block: vhdx: impl SparseCapable for VhdxDiskSync
VHDX does not support sparse operations. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
@@ -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<u64> {
|
||||
Ok(self.vhdx_file.lock().unwrap().virtual_disk_size())
|
||||
|
||||
Reference in New Issue
Block a user