All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthieu CASTET <matthieu.castet@parrot.com>
To: Gabriel Matni <gabriel.matni@gmail.com>
Cc: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: Re: ubifs mount fails due to corrupt empty space
Date: Fri, 13 Jan 2012 10:58:21 +0100	[thread overview]
Message-ID: <4F10003D.2010809@parrot.com> (raw)
In-Reply-To: <CALuiOdd6vgDogxf9+RFWhb-uUoDLji2CawB3Gvisg2iW4C7PiA@mail.gmail.com>

Gabriel Matni a écrit :
> Hello list,
> 
> Using kernel 3.2, ubifs failed to mount a fs properly due to a corrupt
> empty space encoutered while replaying the journal. Please notice the
> bitflip occurring in the supposedly empty space shown in the log below.
> The storage medium is an SLC NAND flash.
> 
> The stack dump shown below shows that replay_log_leb() was behind the
> call to ubifs_scan(), and could not deal with the -EUCLEAN error
> returned. ubifs_scan() returned this error because it detected the
> corrupt empty space.
> 
> The fs was unmounted cleanly, resulting in no need for fs recovery to
> happen during the mount (need_recovery=0). Therefore the recovery of the
> log_leb in question couldn't be performed, causing the mount to abort.
> This problem was also seen in the following thread:
> http://lists.infradead.org/pipermail/linux-mtd/2009-March/024953.html
> <http://lists..infradead.org/pipermail/linux-mtd/2009-March/024953.html> with
> a NOR flash
>  
> I applied the attached patch and the fs was successfully mounted giving
> the fs a second life.
> 
> My main questions are:
> 1) What should be the expected behavior of ubifs in this case?
> 2) Is there a systematic way to recover from a situation like that?
ubifs expect empty space to be protected by ecc. But if empty page ecc is not
ff, this need hack in the nand driver.



Matthieu

  reply	other threads:[~2012-01-13  9:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13  2:24 ubifs mount fails due to corrupt empty space Gabriel Matni
2012-01-13  9:58 ` Matthieu CASTET [this message]
2012-01-16 11:16   ` Artem Bityutskiy
2012-01-16 11:14 ` Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F10003D.2010809@parrot.com \
    --to=matthieu.castet@parrot.com \
    --cc=gabriel.matni@gmail.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.