summaryrefslogtreecommitdiff
path: root/mydisks.py
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic.pouzenc@univ-jfc.fr>2015-08-21 17:54:11 +0200
committerLudovic Pouzenc <ludovic.pouzenc@univ-jfc.fr>2015-08-21 17:54:11 +0200
commit2a5966a6517e3e99062c5796200389fb591091f6 (patch)
treec19c9989814212899ce1d3821d89cc717ac805c8 /mydisks.py
parent0028794b08c1deba0554d4a90bbace69cde599ca (diff)
downloadraidguessfs-2a5966a6517e3e99062c5796200389fb591091f6.tar.gz
raidguessfs-2a5966a6517e3e99062c5796200389fb591091f6.tar.bz2
raidguessfs-2a5966a6517e3e99062c5796200389fb591091f6.zip
Adding RAID 5+0 support, memory fixes and improovements for big disks
Diffstat (limited to 'mydisks.py')
-rw-r--r--mydisks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mydisks.py b/mydisks.py
index 4ca21bf..4a79c81 100644
--- a/mydisks.py
+++ b/mydisks.py
@@ -74,8 +74,9 @@ class MyDisks():
def is_readable(self,disk_no,offset,size):
- import random
- return random.randint(0,100) > 1 # FIXME : implement this (parse ddrescue log files)
+ return True
+ #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)