[RFC] BUG Power loss recovery issues in JFFS2
Alexey Korolev
akorolev at infradead.org
Thu Nov 15 07:45:08 EST 2007
Hi,
> 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? Alexey's testcase creates a new file, so you should be
> able to create such images yourself. This testcase should be a bit more
> reliable to hit the problem:
>
That happens as for newly created files as for updated files. Roman and me made log file and image files requested by David to show the problem.
> for i in `seq -w 1000000`; do echo 12345 > $i; done &
> # wait half a sec
> # hit reset button
> cat `ls | sort | tail -1`
>
> Completely untested, as always.
I think using this way the issue could be reproduced.
Please find image files in the next directly addressed message.
Thanks,
Alexey
More information about the linux-mtd
mailing list