(&mut self, offset: u64, length: u64, user_data: u64)
| 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)] |