• Adrian Hunter's avatar
    UBIFS: fix recovery bug · de097578
    Adrian Hunter authored
    UBIFS did not recovery in a situation in which it could
    have. The relevant function assumed there could not be
    more nodes in an eraseblock after a corrupted node, but
    in fact the last (NAND) page written might contain anything.
    The correct approach is to check for empty space (0xFF bytes)
    from then on.
    Signed-off-by: default avatarAdrian Hunter <adrian.hunter@nokia.com>
    de097578
recovery.c 37.9 KB