Skip to contentSkip to conversation

Handling of write failure on NAND

DISCUSSION ahgu 1 participant 1 message Aug 30, 2005 Memory technology devices (MTD)

lore
Share & tools
lore

ahgu

author
#0 lore raw

Does JFFS2 have support on write failure handling for NAND flash. When a write or verification after write fails, does it find a new block and copy all data into the new block, and mark the original block as bad block? I only see that the bad_list is used during scanning and erase. I saw someone added a retry in the write function, but that is just writing to the same block. The ofs returned by jffs2_reserve_space stays the same.

It is calling the BUGS() and halt the kernel when the write fails.

-Andrew