ubi_eba_init_scan: cannot reserve enough PEBs
Artem Bityutskiy
dedekind1 at gmail.com
Mon Aug 2 00:22:04 EDT 2010
On Fri, 2010-07-30 at 13:51 -0400, Matthew L. Creech wrote:
> On Fri, Jul 30, 2010 at 12:12 PM, Artem Bityutskiy <dedekind1 at gmail.com> wrote:
> >
> > Something like this, I guess, would be good enough?
> >
> ...
> > + * o if this is a new UBI image, then just print the warning
> > + * o if this is an UBI image which has already been used for some time, print
> > + * a warning only if we can reserve less than 10% of the expected amount of
> > + * the reserved PEB.
> > + *
> > + * The idea is that when UBI is used, PEBs become bad, and the reserved pool
> > + * of PEBs becomes smaller, which is normal and we do not want to scare users
> > + * with a warning every time they attach the MTD device. This was an issue
> > + * reported by real users.
>
> This sounds like a good compromise to me. I was wondering whether
> we'd still want to warn in the case in which nearly all of the reserve
> PEBs had been exhausted, and using a 10% threshold seems like a good
> way to accomplish that without scaring others unnecessarily. :)
Pushed this patch to ubi-2.6.git
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list