(&mut self, action: &DeallocAction)
| 83 | } |
| 84 | |
| 85 | fn apply_dealloc_action(&mut self, action: &DeallocAction) { |
| 86 | match action { |
| 87 | DeallocAction::PunchHole { |
| 88 | host_offset, |
| 89 | length, |
| 90 | } => { |
| 91 | let _ = self.data_file.file_mut().punch_hole(*host_offset, *length); |
| 92 | } |
| 93 | DeallocAction::WriteZeroes { |
| 94 | host_offset, |
| 95 | length, |
| 96 | } => { |
| 97 | let _ = self |
| 98 | .data_file |
| 99 | .file_mut() |
| 100 | .write_zeroes_at(*host_offset, *length); |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | impl AsyncIo for QcowAsync { |
no test coverage detected