[PATCH] ubi: Make volume resize power cut aware

Richard Weinberger richard at nod.at
Thu Jun 23 14:17:51 PDT 2016


Am 23.06.2016 um 22:46 schrieb Boris Brezillon:
>> Cc: <stable at vger.kernel.org>
>> Reported-by: Boris Brezillon <boris.brezillon at free-electrons.com>
>> Signed-off-by: Richard Weinberger <richard at nod.at>
> 
> I hope this change won't uncover another bug in case some of the
> UBI logic rely on the 'write vtbl record, then unmap unused LEBs'
> sequence. But AFAICT it seems safe.

To test this patch I've instrumented the resize function and emulated
power cuts at various critical points.
No regressions happened.
Using the same technique I've also verified that the issue this patch
is resolving is real.

Thanks,
//richard



More information about the linux-mtd mailing list