[RFC] BUG Power loss recovery issues in JFFS2

David Woodhouse dwmw2 at infradead.org
Fri Nov 16 01:33:47 EST 2007


On Thu, 2007-11-15 at 13:20 +0100, Jörn Engel wrote:
> On Wed, 14 November 2007 15:17:36 -0500, David Woodhouse wrote:
> > 
> > That shouldn't happen. When one node obsoletes an earlier node covering
> > the same range, we _should_ be checking the data CRC. I reimplemented
> > this part of the code only recently.
> 
> Doesn't that fail for newly created files or for previously sparse
> blocks of files? 

It shouldn't, no. jffs2_build_inode_fragtree() should check the data CRC
before adding anything to the tree.

Can I see the debug output from jffs2_build_inode_fragtree() when it's
building the offending file?

Does this happen before my recent optimisations?

-- 
dwmw2




More information about the linux-mtd mailing list