The future of ubi_assert()

Richard Weinberger richard at nod.at
Thu Nov 6 00:16:28 PST 2014


Am 06.11.2014 um 09:13 schrieb Artem Bityutskiy:
> On Thu, 2014-11-06 at 09:07 +0100, Richard Weinberger wrote:
>> I think we can do better.
>> Think of wl.c, if an ubi_assert() in wl.c does not hold, we can put the UBI device
>> into read-only mode and continue execution.
>> BUG_ON() would be too much and WARN_ON() would lead to data corruption as the execution
>> would go on...
>> Something like ext4's errors=remount-ro. :)
> 
> If you are willing to do the work, and if it is needed, and actually
> tested, sure.

Of course I will.
During fastmap development I ran into basically every ubi_assert() and
had to find out whether it is useful or not.^^

Thanks,
//richard



More information about the linux-mtd mailing list