dm verity: add support for forward error correction
Add support for correcting corrupted blocks using Reed-Solomon. This code uses RS(255, N) interleaved across data and hash blocks. Each error-correcting block covers N bytes evenly distributed across the combined total data, so that each byte is a maximum distance away from the others. This makes it possible to recover from several consecutive corrupted blocks with relatively small space overhead. In addition, using verity hashes to locate erasures nearly doubles the effectiveness of error correction. Being able to detect corrupted blocks also improves performance, because only corrupted blocks need to corrected. For a 2 GiB partition, RS(255, 253) (two parity bytes for each 253-byte block) can correct up to 16 MiB of consecutive corrupted blocks if erasures can be located, and 8 MiB if they cannot, with 16 MiB space overhead. Signed-off-by:Sami Tolvanen <samitolvanen@google.com> Signed-off-by:
Mike Snitzer <snitzer@redhat.com>
Loading
-
mentioned in commit 656b900f
-
mentioned in commit 83c1827e
-
mentioned in commit 55f6a969
-
mentioned in commit b170c5ce
-
mentioned in commit 1732ff65
-
mentioned in commit d5552f63
-
mentioned in commit 61d32967
-
mentioned in commit 5c06b486
-
mentioned in commit 652c1435
-
mentioned in commit 401a2769
-
mentioned in commit a3f15335
-
mentioned in commit b5813891
Please sign in to comment