A computer program product having a non-transitory, computer-readable storage medium which stores code for storing data in a redundant disk array that employs a code which transforms an information vector of information symbols of length k into a codeword of code symbols of length n, the code including instructions which, when executed by the disk controller, causes the disk controller to:
- construct a set of l generator matrices, each generator matrix of the set of l generator matrices being compatible with the code and corresponding to a data stripe of the redundant disk array, l being at least 2;
- generate a respective codeword for a given information vector by multiplying the given information vector by a particular generator matrix of the set of l generator matrices;
- and
- store the respective codeword in a data stripe of the redundant array to which the particular generator matrix corresponds;
- wherein the code is a systematic code in which the codeword of length n contains the information vector of length k and a check symbol vector of check symbols of length n−k;
- wherein each generator matrix of the set of l generator matrices includes columns of a k×k identity matrix and columns of a k×(n−k) check matrix;
- wherein a nominal generator matrix is defined to be a generator matrix with its first k columns being the k×k identity matrix;
- and
- wherein n is greater than k.