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

Method add_fs

vmm/src/device_manager.rs:5072–5077  ·  view source on GitHub ↗
(&mut self, fs_cfg: &mut FsConfig)

Source from the content-addressed store, hash-verified

5070 }
5071
5072 pub fn add_fs(&mut self, fs_cfg: &mut FsConfig) -> DeviceManagerResult<PciDeviceInfo> {
5073 self.validate_identifier(&fs_cfg.pci_common.id)?;
5074
5075 let device = self.make_virtio_fs_device(fs_cfg)?;
5076 self.hotplug_virtio_pci_device(device)
5077 }
5078
5079 pub fn add_generic_vhost_user(
5080 &mut self,

Callers

nothing calls this directly

Calls 3

make_virtio_fs_deviceMethod · 0.80
validate_identifierMethod · 0.45

Tested by

no test coverage detected