mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Switch resize and grow_l1_table from qcow::Result to BlockResult. All I/O error sites use explicit BlockError::new with the Io kind. The write_to call in grow_l1_table rewraps WritingHeader as ResizeIo to preserve the existing error semantics. The two resize tests that check for ShrinkNotSupported and ResizeWithBackingFile are updated to match on BlockErrorKind with downcast to inspect the underlying variant. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>