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

Method flush

block/src/qcow/metadata.rs:239–245  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

237 }
238
239 pub fn flush(&self) -> io::Result<()> {
240 let mut inner = self.inner.write().unwrap();
241 inner.sync_caches()?;
242 let mut unref = mem::take(&mut inner.unref_clusters);
243 inner.avail_clusters.append(&mut unref);
244 Ok(())
245 }
246
247 /// Flushes dirty metadata caches and clears the dirty bit for
248 /// clean shutdown.

Callers 15

endMethod · 0.45
create_qcow_tempfileFunction · 0.45
fsync_syncMethod · 0.45
detect_qcow2_imageFunction · 0.45
executeMethod · 0.45
fsyncMethod · 0.45
create_disk_with_dataFunction · 0.45
fsyncMethod · 0.45
create_disk_with_dataFunction · 0.45

Calls 2

writeMethod · 0.45
sync_cachesMethod · 0.45