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

Function make_qcow_file

block/src/qcow_disk.rs:201–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 const TEST_SIZE: u64 = 0x5566_7788;
200
201 fn make_qcow_file() -> File {
202 let temp_file = TempFile::new().unwrap();
203 {
204 let raw = RawFile::new(temp_file.as_file().try_clone().unwrap(), false);
205 QcowFile::new(raw, 3, TEST_SIZE, true).unwrap();
206 }
207 temp_file.into_file()
208 }
209
210 #[test]
211 fn new_sync_returns_correct_size() {

Calls 2

newFunction · 0.85
try_cloneMethod · 0.45