UBIFS Corrupt during power failure

Jamie Lokier jamie at shareable.org
Wed Apr 15 16:46:56 EDT 2009


Nicolas Pitre wrote:
> > > Can MTD and/or UBI join two chips to look like a single partition in
> > > that way and avoid pauses for erase by writing to the other part?
> > 
> > The CONFIG_MTD_CONCAT option will join multiple chips together into a
> > single MTD device, but I haven't looked into the code to see if it
> > allows simultaneous operations on the separate chips.
> 
> It does.
> 
> > Nothing like RAID0 on flash :)
> 
> Well, the concat layer does not offer any kind of stripe management. I 
> think someone posted a set of patches a while ago to add such a 
> capability though.

If MTD concat write/erase operations can run in parallel, then the
powerfail-corruption-block that UBIFS is scanning for will be one
block per underlying device, not one block for the whole MTD.

That means a single number describing the powerfail-corruption-block
is not enough for MTD concat devices.

However provided they are distinct erase blocks, maybe this does not
affect UBIFS's classification of dead blocks.

If they are arranged as stripes, the MTD concat's overall
powerfail-corruption-block size must be set to the maximum of the
underlying MTD's value and the strip size.  Alignment is left as an
exercise...

-- Jamie



More information about the linux-mtd mailing list