mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block: factory: Add disk image factory module
Introduce block::factory with open_disk() as the single entry point for opening disk images. It handles file opening, format detection, async I/O probing, and backend construction. Per format helpers (open_fixed_vhd, open_raw, open_qcow2, open_vhdx) prefer io_uring over AIO over synchronous fallback. Warnings only fire when a backend was eligible but its runtime probe failed, not when the user intentionally disabled it. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
d56253196b
commit
cba2b7f773
@@ -11,6 +11,7 @@
|
||||
pub mod async_io;
|
||||
pub mod disk_file;
|
||||
pub mod error;
|
||||
pub mod factory;
|
||||
pub mod fcntl;
|
||||
pub mod fixed_vhd;
|
||||
#[cfg(feature = "io_uring")]
|
||||
|
||||
Reference in New Issue
Block a user