diff options
author | Kevin Greenan <kmg@box.com> | 2015-04-09 17:06:55 -0700 |
---|---|---|
committer | Kevin Greenan <kmg@box.com> | 2015-04-09 17:08:35 -0700 |
commit | ac434453c506732ede554655d5ef30aaf857f402 (patch) | |
tree | fde4c5336eb65da273dabf1111b401893ad0ee81 /src | |
parent | 1c85fcfca65f6f38a8fdf05ba94c9988e91c52db (diff) | |
download | liberasurecode-ac434453c506732ede554655d5ef30aaf857f402.tar.gz |
Adding a new HD XOR code for k=3, m=3, hd=3
Also added additional test to test_xor_code to do an exhaustive decode test
(all possible 1 and 2 disk failures) and changed teh default liberasurecode
test to test (3, 3, 3).
Diffstat (limited to 'src')
-rw-r--r-- | src/builtin/xor_codes/xor_hd_code.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/builtin/xor_codes/xor_hd_code.c b/src/builtin/xor_codes/xor_hd_code.c index d34e2d3..5c4d052 100644 --- a/src/builtin/xor_codes/xor_hd_code.c +++ b/src/builtin/xor_codes/xor_hd_code.c @@ -664,6 +664,8 @@ xor_code_t* init_xor_hd_code(int k, int m, int hd) if (k <= 10 && k >= 5) { is_valid = 1; } + } else if (m == 3) { + is_valid = 1; } } |