[U-Boot] [PATCH] UBIFS: fix recovery bug
Wolfgang Denk
wd at denx.de
Tue Apr 28 00:36:37 CEST 2009
Dear Stefan Roese,
In message <1239724238-18155-1-git-send-email-sr at denx.de> you wrote:
> From: Adrian Hunter <adrian.hunter at nokia.com>
>
> 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 at nokia.com>
> Signed-off-by: Stefan Roese <sr at denx.de>
> ---
> fs/ubifs/recovery.c | 70 ++++++++++++++++----------------------------------
> 1 files changed, 23 insertions(+), 47 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
: I've tried (in vi) "g/[a-z]\n[a-z]/s//_/"...but that doesn't
: cut it. Any ideas? (I take it that it may be a two-pass sort of solution).
In the first pass, install perl. :-) Larry Wall <6849 at jpl-devvax.JPL.NASA.GOV>
More information about the U-Boot
mailing list