mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Switch the public QcowFile constructors (new, new_from_backing, new_from_header, from, from_backing, from_file_and_header) from qcow::Result to BlockResult. Internal calls to header functions that still return qcow::Result are wrapped with explicit error classification at each call site. Test assertions are updated to match on BlockErrorKind and use downcast to inspect the underlying qcow::Error variant. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>