摘要 |
A method for using parity (28) and a write cache (30) for a RAID (12, 14) by adding a check code (50) for the parity data (34) itself. In addition, the time during which the parity check code (50) is unprotected is reduced by using a single loop to calculate the old parity code (72) and verify it, determine the new parity information (74) itself from the new write data, and calculate the new parity check code (76). Rather than cycle through all the parity blocks to calculate the old check code, and verify that it matches what is stored, the old check code is reconstructed block-by-block as the new parity is generated for each block in a loop. In addition, the new parity check code is constructed bit-by-bit at the same time. |