commit | 0a7b47397db3648afe6f3aeb2abb175934c2cbca | [log] [tgz] |
---|---|---|
author | Sami Tolvanen <samitolvanen@google.com> | Thu Jun 25 10:25:36 2015 +0100 |
committer | Sami Tolvanen <samitolvanen@google.com> | Mon Oct 19 10:04:38 2015 +0100 |
tree | fe96929e9c56c4fe8f1ee8abed130d3c2c39653d | |
parent | 245b2da1711db8a9b8e333395d68235df5163483 [diff] |
Error correction: Use libfec in blockimg.cpp for recovery Add block_image_recover function to rewrite corrupted blocks on the partition. This can be attempted if block_image_verify fails. Note that we cannot use libfec during block_image_update as it may overwrite blocks required for error correction. A separate recovery pass in case the image is corrupted is the only viable option. Bug: 21893453 Change-Id: I6ff25648fff68d5f50b41a601c95c509d1cc5bce