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

Method write_zeroes_at

block/src/qcow/mod.rs:2146–2149  ·  view source on GitHub ↗
(&mut self, offset: u64, length: usize)

Source from the content-addressed store, hash-verified

2144
2145impl WriteZeroesAt for QcowFile {
2146 fn write_zeroes_at(&mut self, offset: u64, length: usize) -> io::Result<usize> {
2147 self.punch_hole(offset, length as u64)?;
2148 Ok(length)
2149 }
2150}
2151
2152impl SeekHole for QcowFile {

Callers 3

apply_dealloc_actionMethod · 0.45
punch_holeMethod · 0.45
deallocate_bytesMethod · 0.45

Calls 1

punch_holeMethod · 0.45

Tested by

no test coverage detected