block: vhd: Switch FixedVhdDiskAsync::new to BlockResult

Map FixedVhd::new io::Error to BlockError with ErrorOp::Open.
Update vmm CreateFixedVhdDiskAsync source type accordingly.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-24 17:01:55 +01:00
committed by Bo Chen
parent 38eb10d209
commit 15073edf08
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -569,7 +569,7 @@ pub enum DeviceManagerError {
/// Failed to create FixedVhdDiskAsync
#[error("Failed to create FixedVhdDiskAsync")]
CreateFixedVhdDiskAsync(#[source] io::Error),
CreateFixedVhdDiskAsync(#[source] BlockError),
/// Failed to create FixedVhdDiskSync
#[error("Failed to create FixedVhdDiskSync")]