summaryrefslogtreecommitdiff
path: root/mydisks.py
diff options
context:
space:
mode:
Diffstat (limited to 'mydisks.py')
-rw-r--r--mydisks.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mydisks.py b/mydisks.py
index c3b7716..b249198 100644
--- a/mydisks.py
+++ b/mydisks.py
@@ -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)