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

Method drop

block/src/qcow/mod.rs:2021–2026  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

2019
2020impl Drop for QcowFile {
2021 fn drop(&mut self) {
2022 let _ = self.sync_caches();
2023 if self.raw_file.file().is_writable() {
2024 let _ = self.header.set_dirty_bit(self.raw_file.file_mut(), false);
2025 }
2026 }
2027}
2028
2029impl Read for QcowFile {

Callers

nothing calls this directly

Calls 5

is_writableMethod · 0.80
fileMethod · 0.80
set_dirty_bitMethod · 0.80
file_mutMethod · 0.80
sync_cachesMethod · 0.45

Tested by

no test coverage detected