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

Method try_clone

block/src/qcow/raw_file.rs:99–106  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

97 }
98
99 pub fn try_clone(&self) -> std::io::Result<RawFile> {
100 Ok(RawFile {
101 file: self.file.try_clone().expect("RawFile cloning failed"),
102 alignment: self.alignment,
103 position: self.position,
104 direct_io: self.direct_io,
105 })
106 }
107
108 pub fn sync_all(&self) -> std::io::Result<()> {
109 self.file.sync_all()

Callers 15

notifierMethod · 0.45
pl011_outputFunction · 0.45
pl011_inputFunction · 0.45
add_kernel_dataMethod · 0.45
add_initramfs_dataMethod · 0.45
notifierMethod · 0.45
serial_outputFunction · 0.45
serial_inputFunction · 0.45
serial_thrFunction · 0.45
serial_dlabFunction · 0.45
serial_modemFunction · 0.45
serial_scratchFunction · 0.45

Calls

no outgoing calls

Tested by 15

pl011_outputFunction · 0.36
pl011_inputFunction · 0.36
serial_outputFunction · 0.36
serial_inputFunction · 0.36
serial_thrFunction · 0.36
serial_dlabFunction · 0.36
serial_modemFunction · 0.36
serial_scratchFunction · 0.36
detect_qcow2_imageFunction · 0.36