JFFS2 Corruption.

David Woodhouse dwmw2 at infradead.org
Tue Feb 24 13:05:59 EST 2004


On Tue, 2004-02-24 at 17:05 +0000, Simon Haynes wrote:
> Would you recommend changing the printk for the "Empty Flash" messages to a 
> different level and using the ramdisk as a permanent solution ?

Changing the printk level for the 'Empty Flash' messages does seem
appropriate -- or preferably finding a way to eliminate the ones which
we don't want. Are you mounting the fs read-only before rebooting? If
not, the occasional CRC failure is acceptable. You get those with an
unclean restart. It doesn't indicate data loss; it indicates that one
particular log entry which you were writing _while_ you rebooted was
lost. That was not data which userspace thought was already on the
medium.

The problem with mtdblock is interesting. Can you make it BUG() when it
dirties its cache and put it back to how it was, using mtdblock?

-- 
dwmw2




More information about the linux-mtd mailing list