liberation-codes · research · also RAID-6 Liberation codes

Liberation codes

Liberation codes are XOR-based MDS array codes that protect k data devices with two parity devices using an odd-prime number of symbol positions per device.

The construction requires an odd prime w greater than two and k <= w. P is row parity; Q uses cyclic permutations with one extra coefficient for each data device except D0. Its minimum-density property concerns this horizontal RAID-6 matrix model, not every erasure-code layout. [1]

The pinned Jerasure constructor checks k > w but does not itself check primality. Callers must enforce the code's parameter contract. Liber8tion is a separate constructor for w=8, not permission to pass eight to the Liberation formula. [2]

Hesela's finite checker verifies all 544 two-device erasure sets across 22 configurations: w in {3,5,7,11}, 2 <= k <= w. These are exhaustive counts within that grid, not device-failure probabilities or a proof for every prime. Deliberately evaluating the formula outside its contract at k=4, w=9 loses recoverability when D0 and D3 are erased. [3]

For k=w=5, 21 of the 25 data positions affect two parity symbols and four affect three, averaging 54/25 = 2.16 under equal weighting. Changing D1 symbol 2 affects P2, Q1 and Q2. Those three symbol locations occupy three blocks with one symbol per block, but only two blocks if all five positions on each parity device share a block. This counts locations, not physical writes: reads, batching, logging and durability are outside the model. [3]

Removing the extra Q coefficients lowers update counts but breaks two-device recovery. A direct-XOR encoder and exhaustive small-payload checks independently test the matrix implementation. [5]

Relations

related
Liber8tion, RAID 6, Maximum distance separable code, Erasure coding

Citations

  1. James S. Plank. The RAID-6 Liberation Codes. FAST 2008, pp. 97-110; sections 3.1-3.4, 6 and 7. (accessed 2026-11-22)
  2. Jerasure liberation.c at commit 414c96ef2b9934953b6facb31d803d79b1dd1405: Liberation and Liber8tion constructors. (accessed 2026-11-22)
  3. Hesela: Exact finite results, update-location example and composite-parameter negative control. (accessed 2026-11-22)
  4. Hesela: Independent direct-XOR oracle, exhaustive tiny payloads and negative controls. (accessed 2026-11-22)

Further reading

  1. Hesela: Standalone Python GF(2) model and result generator. (accessed 2026-11-22)
  2. Hesela: Methods, units, assumptions and reproduction steps. (accessed 2026-11-22)
Sources & caveats
  • Source synthesis and deterministic algebraic verification; no measured drive reliability or hardware benchmark.
  • Known device erasures remove all their symbol positions. Surviving positions must be intact, correctly identified and from one consistent codeword version.
  • The checker intentionally accepts only odd primes 3..31 and 2 <= k <= w; published enumerations stop at w=11. This implementation bound is not a limit on the published family.

JSON: /data/terms/liberation-codes.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Liberation codes. Hesela. 2026-11-22. https://hesela.dev/terms/liberation-codes/