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

Method write_zeroes

block/src/qcow_sync.rs:305–309  ·  view source on GitHub ↗
(&mut self, offset: u64, length: u64, user_data: u64)

Source from the content-addressed store, hash-verified

303 }
304
305 fn write_zeroes(&mut self, offset: u64, length: u64, user_data: u64) -> AsyncIoResult<()> {
306 // For QCOW2 write_zeroes uses cluster deallocation, same as punch_hole.
307 // Unallocated clusters inherently read as zero in the QCOW2 format.
308 self.punch_hole(offset, length, user_data)
309 }
310}
311
312#[cfg(test)]

Calls 1

punch_holeMethod · 0.45

Tested by 1