[RFC] BUG Power loss recovery issues in JFFS2

Alexey Korolev akorolev at infradead.org
Thu Nov 15 09:26:31 EST 2007


On Thu, 15 Nov 2007, Jörn Engel wrote:

> 
> Could be a writebuffer thing.  Maybe a testcase like this will force it
> on NAND.
> 
No it is low probable. At least we were able to see the issue when JFFS2 worked with M18 like device. 
> # mount
> head -c3960 /dev/urandom > wbuf_preload
> echo 12345 > foo
> # wait long enough for write to finish, but not long enough for wbuf to
> # get flushed, hit reset button
> 
> The size of the preload should be carefully crafted.  3960 bytes plus
> node header of 68 bytes leaves exactly another 68 bytes for the next
> node header.  So the wbuf gets filled and written right after the second
> node's header, but before its data.  Works with wbuf sizes of 512, 1024,
> 2048 and 4096.
> 
You right here. We need to clearly understand why we do not see the bug for NAND. Probably the issue is in the test case.
Thanks,
Alexey


More information about the linux-mtd mailing list