FAILURE MAP
← Case archive

FA-72037 / Error-correcting codes / Member archive

RAID-5 reads data chunks in disk order · case 02

Logical chunks come back rotated for stripes whose parity is not on the last disk.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

RAID-5 left-symmetric layout on n >= 3 disks: in stripe s the parity lives on disk n-1-(s mod n) and data chunk j lives on disk (parity + 1 + j) mod n. blocks lists the stripe per disk (ints; at most one None for a failed disk). A missing block is rebuilt by XOR; with no missing block the XOR of all blocks must be 0 or the result is "parity-mismatch". Return [data chunks in logical order, parity block].

Why this case matters

Array controllers rebuild degraded stripes and must map disks to logical chunks correctly.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression [[197, null, 1, 70], 1, 4][[197, 130, 70], 1][[70, 197, 130], 1]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗