diff options
Diffstat (limited to 'mydisks.py')
-rw-r--r-- | mydisks.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -68,6 +68,11 @@ class MyDisks(): self.disks_size[d] = 0 logging.debug("Exit. open_disks()") + + def is_readable(self,disk_no,offset,size): + import random + return random.randint(0,100) > 1 # FIXME : implement this (parse ddrescue log files) + def read(self,disk_no,offset,size): self.disks[disk_no].seek(offset) return self.disks[disk_no].read(size) |