[PATCH] UBIFS: fix master node recovery

Anatolij Gustschin agust at denx.de
Thu Jul 7 03:36:12 EDT 2011


On Thu, 07 Jul 2011 09:15:33 +0300
Artem Bityutskiy <dedekind1 at gmail.com> wrote:

> Anatolij,
> 
> On Wed, 2011-07-06 at 11:30 +0200, Anatolij Gustschin wrote:
> > When the 1st LEB was unmapped and written but 2nd LEB not,
> > the master node recovery doesn't succeed after power cut.
> > We see following error when mounting UBIFS partition on NOR
> > flash:
> > 
> > UBIFS error (pid 1137): ubifs_recover_master_node: failed to recover master node
> 
> Could you please provide some numbers - when this error happens, what is
> offs2, sz, and c->leb_size when this error happens?

offs2 = 261120, sz = 512, c-leb_size = 262016. There are 384 unused
bytes at the end of the LEB 2: 262016 - 261120 - 512 = 384.

Anatolij



More information about the linux-mtd mailing list