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

Method topology

block/src/raw_disk.rs:73–78  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

71
72impl disk_file::Geometry for RawDisk {
73 fn topology(&self) -> DiskTopology {
74 DiskTopology::probe(&self.file).unwrap_or_else(|_| {
75 warn!("Unable to get device topology. Using default topology");
76 DiskTopology::default()
77 })
78 }
79}
80
81impl disk_file::SparseCapable for RawDisk {

Callers 1

newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected