UBIFS: fix recovery bug
authorAdrian Hunter <adrian.hunter@nokia.com>
Tue, 14 Apr 2009 15:50:38 +0000 (17:50 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 27 Apr 2009 22:36:21 +0000 (00:36 +0200)
commit6356daff70867822bdb23cea49f98e65421a25b8
tree92d343f6be95d7f09e79df69cdee1969cd738d52
parent351f40caf2f7806b2cefb93e077ea619b9f684e8
UBIFS: fix recovery bug

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>
Signed-off-by: Stefan Roese <sr@denx.de>
fs/ubifs/recovery.c