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

Method vm_add_disk

vmm/src/api/dbus/mod.rs:137–140  ·  view source on GitHub ↗
(&self, disk_config: String)

Source from the content-addressed store, hash-verified

135 }
136
137 async fn vm_add_disk(&self, disk_config: String) -> Result<Optional<String>> {
138 let disk_config = serde_json::from_str(&disk_config).map_err(api_error)?;
139 self.vm_action(&AddDisk, disk_config).await
140 }
141
142 async fn vm_add_fs(&self, fs_config: String) -> Result<Optional<String>> {
143 let fs_config = serde_json::from_str(&fs_config).map_err(api_error)?;

Callers 1

requestMethod · 0.45

Calls 1

vm_actionMethod · 0.80

Tested by

no test coverage detected