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

Method write_zeroes

block/src/qcow_async.rs:240–244  ·  view source on GitHub ↗
(&mut self, offset: u64, length: u64, user_data: u64)

Source from the content-addressed store, hash-verified

238 }
239
240 fn write_zeroes(&mut self, offset: u64, length: u64, user_data: u64) -> AsyncIoResult<()> {
241 // For QCOW2, zeroing and hole punching are the same operation.
242 // Both discard guest data so the range reads back as zero.
243 self.punch_hole(offset, length, user_data)
244 }
245
246 fn batch_requests_enabled(&self) -> bool {
247 true

Calls 1

punch_holeMethod · 0.45

Tested by 1