mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-05 16:00:05 +01:00
The error correction can fix even problem with root hash. For now, always return fail if initial check of root hash failed. FIXME: The FEC verify code need to be rewritten to repair only blocks where hash is wrong and the re-check hash after recovery, inclkuding root hash. Now we do not check hash after FEC recovery. The Reed-Solomon decoder can then "repair" code wrongly if parity is too damaged. For now, the information about FEC repaired errors is only advisory, it does not mean device is fully repaireable.