MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / open_vhdx

Function open_vhdx

block/src/factory.rs:111–119  ·  view source on GitHub ↗
(
    file: fs::File,
    options: &DiskOpenOptions<'_>,
)

Source from the content-addressed store, hash-verified

109}
110
111fn open_vhdx(
112 file: fs::File,
113 options: &DiskOpenOptions<'_>,
114) -> BlockResult<Box<dyn AsyncFullDiskFile>> {
115 info!("Opening VHDX disk file with synchronous backend");
116 Ok(Box::new(
117 VhdxDiskSync::new(file).map_err(|e| e.with_path(options.path))?,
118 ))
119}
120
121fn open_fixed_vhd(
122 file: fs::File,

Callers 1

open_diskFunction · 0.85

Calls 2

newFunction · 0.85
with_pathMethod · 0.80

Tested by

no test coverage detected