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

Method total_size

vmm/src/config.rs:1117–1126  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1115 }
1116
1117 pub fn total_size(&self) -> u64 {
1118 self.size
1119 + self
1120 .zones
1121 .iter()
1122 .flatten()
1123 .map(|zone| zone.size)
1124 .sum::<u64>()
1125 + self.hotplugged_size()
1126 }
1127
1128 pub fn hotplugged_size(&self) -> u64 {
1129 self.hotplugged_size.unwrap_or(0)

Callers 3

validateMethod · 0.80
fromMethod · 0.80
vm_infoMethod · 0.80

Calls 3

iterMethod · 0.80
mapMethod · 0.45
hotplugged_sizeMethod · 0.45

Tested by

no test coverage detected