two questions about jffs2
I am not sure if you even understand the question, so please behave.
The question is: if the file system supposed to address the issue of the bad blocks then JFFS2, which is the file system must handle the bad blocks, This includes all the read and write operations. The only thing MTD checks is the erase operation on the blocks.
--vahid
Quoted 27 lines · --- Michael
--- Vahid Fereydunkolahi <[email protected]>
Quoted 1 line · wrote:
The comment "JFFS2 handles bad blocks just fine."
is
Quoted 1 line
an strange comment. As far as I know the handling
of
Quoted 1 line
the bad blocks must be managed by the file system
and
Quoted 1 line
mtd device will only check for bad blocks for
erase operation.
Quoted 1 line
I think you just embarrased yourself. JFFS2 is
Journalling Flash
File System 2, which works overtop of MTD, the
Memory Technology
Devices [driver layer].And I think it handles them just fine, too. Did you look at
linux-mtd.infradead.org? There's lots of good info there, and it's
a lot easier than searching the mailing list. (which is useful as
well)
Quoted 2 lines
Mike
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
Quoted 2 lines · Vahid Fereydunkolahi
I am not sure if you even understand the question, so please behave.
Speaking of behaving, please don't top post on this list.
Quoted 6 lines
The question is: if the file system supposed to address the issue of the bad blocks then JFFS2, which is the file system must handle the bad blocks, This includes all the read and write operations. The only thing MTD checks is the erase operation on the blocks.
Perhaps if you restate the question someone may be able to help you. The above isn't very clear.
JFFS2 handles bad blocks. It does this by detecting a block is bad, and then never doing anything with said block. The definition of a bad block is that it is marked as such in the spare area at manufacturing time. Any write/erase operation to such a block would cause this information to be lost. Therefore, JFFS2 does not touch these blocks during runtime.
josh
Quoted 6 lines · Josh Boyer
JFFS2 handles bad blocks. It does this by detecting a block is bad, and then never doing anything with said block. The definition of a bad block is that it is marked as such in the spare area at manufacturing time. Any write/erase operation to such a block would cause this information to be lost. Therefore, JFFS2 does not touch these blocks during runtime.
Even if the filesystem misbehaves the nand driver in the mtd layer refuses to write/erase bad blocks.
tglx