UBIFS: fix recovery bug
authorAdrian Hunter <adrian.hunter@nokia.com>
Fri, 20 Mar 2009 10:09:04 +0000 (11:09 +0100)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 7 Apr 2009 15:08:21 +0000 (18:08 +0300)
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: Adrian Hunter <adrian.hunter@nokia.com>

No differences found