mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Replace the manual match block that constructed each disk format backend with a single call to block::factory::open_disk. The factory handles file opening, format detection, async/sync backend selection and logging internally. Remove imports and errors for individual format types and helper functions that are no longer called directly. The factory returns BlockError with path and operation context attached, surfaced via the existing Disk variant. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>