summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLudovic Pouzenc <lpouzenc@lud-GB1>2015-06-12 08:34:26 +0200
committerLudovic Pouzenc <lpouzenc@lud-GB1>2015-06-12 08:34:26 +0200
commit5943acb92ce0159e9f482748e4fa4aadddae6851 (patch)
treee4fc66dabda439f8a98535f10287018e871c2e41 /tools
parent49c830d2d70547c31cab1b1f0bc9f26d77d62a7e (diff)
downloadraidguessfs-5943acb92ce0159e9f482748e4fa4aadddae6851.tar.gz
raidguessfs-5943acb92ce0159e9f482748e4fa4aadddae6851.tar.bz2
raidguessfs-5943acb92ce0159e9f482748e4fa4aadddae6851.zip
Initial import.
RAID 5 xor parity checking is working, data reading on left-assymetric RAID 5 is working. Nothing done on other RAID types.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pattern.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/pattern.py b/tools/pattern.py
new file mode 100755
index 0000000..0367698
--- /dev/null
+++ b/tools/pattern.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+
+def main():
+ i=0
+ max=pow(10,15)
+ while True:
+ print "%015d"%i,
+ i=(i+1)%max
+
+
+if __name__ == '__main__':
+ main()