ubi_eba_init_scan: cannot reserve enough PEBs

Stefani Seibold stefani at seibold.net
Tue Aug 31 08:09:47 EDT 2010

Am Sonntag, den 22.08.2010, 18:04 +0300 schrieb Artem Bityutskiy:
> Yes, but your patch fixes the symptom, unfortunately. It is ok for you
> to use as a work-around, but I still hope to find the root cause.

True, but also if we fix the cause, this could happen. Imagine that one
of the two master LEB will get corrupted, due a flash error or a power
fail during a write access. Than the system should able to mount this
damaged file system and restore the lost master LEB.

We should try to make UBIFS as robustly as possible and handle all
possible errors.
My path is only a first idea to solve this kind of problem. I think it
must enhanced by restoring the LEB when the filesystem is mounted

I think it is important to be a bit more defensive and assume the worst

- Stefani

More information about the linux-mtd mailing list