Fetch block contents from disk given extents
(self, extent)
| 168 | return "%s/blk%05d.dat" % (self.settings['input'], fn) |
| 169 | |
| 170 | def fetchBlock(self, extent): |
| 171 | '''Fetch block contents from disk given extents''' |
| 172 | with open(self.inFileName(extent.fn), "rb") as f: |
| 173 | f.seek(extent.offset) |
| 174 | return f.read(extent.size) |
| 175 | |
| 176 | def copyOneBlock(self): |
| 177 | '''Find the next block to be written in the input, and copy it to the output.''' |
no test coverage detected