• Artem Bityutskiy's avatar
    UBI: fix forward compatibility · 80c1c16f
    Artem Bityutskiy authored
    Commit 0798cea8 "UBI: improve corrupted flash handling"
    broke delet-compatible volumes handling - it introduced a limit of 8 eraseblocks which
    may be corrupted. And delete-compatible eraseblocks are added to the "corrupted" list,
    so if we'd have a large delete-compatible volume, UBI would refuse it.
    
    The fix is to add delete-compatible volumes to the erase list instead. Indeed, they are
    corrupted, we just have to erase them.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    80c1c16f
scan.c 36.8 KB