mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
vmm: device_manager: Add info!() message about disk file backend
It might be useful debugging information for the user to know what kind of disk file implementation is in use. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
2824642e80
commit
f6c8e4b045
@ -1659,12 +1659,15 @@ impl DeviceManager {
|
||||
// Use asynchronous backend relying on io_uring if the
|
||||
// syscalls are supported.
|
||||
if block_io_uring_is_supported() && !disk_cfg.disable_io_uring {
|
||||
info!("Using asynchronous RAW disk file (io_uring)");
|
||||
Box::new(RawFileDisk::new(file)) as Box<dyn DiskFile>
|
||||
} else {
|
||||
info!("Using synchronous RAW disk file");
|
||||
Box::new(RawFileDiskSync::new(file, disk_cfg.direct)) as Box<dyn DiskFile>
|
||||
}
|
||||
}
|
||||
ImageType::Qcow2 => {
|
||||
info!("Using synchronous QCOW disk file");
|
||||
Box::new(QcowDiskSync::new(file, disk_cfg.direct)) as Box<dyn DiskFile>
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user