mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Replace remaining automatic From conversions in parse_qcow and BackingFile::new with explicit BlockError::new calls carrying the appropriate BlockErrorKind at every error site. Internal functions that still return qcow::Result (QcowHeader::new, offset_is_cluster_boundary, clear_autoclear_features and others) are wrapped with map_err at the boundary. These functions stay on qcow::Result as they are internal to the qcow module and the classification belongs at the call site rather than inside the function itself. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>