[PATCH] mtd: nand: write bad block marker even with BBT

Artem Bityutskiy dedekind1 at gmail.com
Mon Dec 12 15:49:48 EST 2011


On Wed, 2011-12-07 at 13:08 -0800, Brian Norris wrote:
> Add and option (NAND_BBT_WRITE_BBM) for writing bad block markers to
> proper OOB area on each block in addition to flash-based BBT. This is
> useful when:
> 
>  * bootloader cannot read the flash-based BBT format
>  * BBT is corrupted and the flash must be rescanned for bad
>    blocks; we want to remember bad blocks that were marked from Linux
> 
> Adapted from code by Matthieu CASTET.
> 
> Cc: Matthieu CASTET <matthieu.castet at parrot.com>
> Signed-off-by: Brian Norris <computersforpeace at gmail.com>

2 questions, perhaps silly, but still:

1. Why wouldn't you make this the only and the default behavior? Why
adding more options instead?

2. Would the case of inconsistency between BBT and OOB markers be
possible to fix-up after the power cut?

Artem.




More information about the linux-mtd mailing list