UBIFS Corrupt during power failure

Artem Bityutskiy dedekind at infradead.org
Fri Apr 17 10:36:58 EDT 2009


On Fri, 2009-04-17 at 14:51 +0100, Jamie Lokier wrote:
> Artem Bityutskiy wrote:
> > Jamie, thanks for feedback!
> 
> Thanks for the new sections in the UBI FAQ!
> > Yeah...
> > 
> > >    That makes the range of parallel writes, and so
> > >    corruption-on-power-loss, even larger than max(N * strip_size, N *
> > >    block_size).  The range is as large as the whole write, if one chip
> > >    is writing much faster than the others, so it cannot be represented
> > >    by a small number.
> > 
> > Then I guess we should just introduce mtd->max_corruption ? This would
> > mean maximum amount of bytes corruption may span in vase of power cuts?
> 
> With that name maybe whoever implements striping will remember think
> about parallelism and limit it :-)
> 
>   /* Max size of corrupted block when a write command is interrupted
>      by reset or power failure. */
>   u32 max_write_corruption;

Yeah, let's wait for Eric's results and then will work on
extending MTD device model with this parameter.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list