ubifs robustness with early power cut warning

Richard Weinberger richard.weinberger at gmail.com
Mon Oct 2 04:35:41 PDT 2017


Kees,

On Mon, Oct 2, 2017 at 10:06 AM, Kees Trommel <ctrommel at aimvalley.nl> wrote:
> Doug,
>
> Attached a patch file with an implementation that I developed for our custom
> board that has an early powerdown (is dying) signal (GPIO pin).
>
> The idea is that when an "I am dying" condition is detected no erase or
> program is started by the mtd layer. It is assumed that an erase or program
> started before the board starts to die will be completed successfully.

Out of curiosity, did you also try to freeze or schedule the calling task?

Maybe we should add something like that to MTD as generic interface.
I saw such hacks in all variants in vendor/customer kernels.

-- 
Thanks,
//richard



More information about the linux-mtd mailing list