jffs2_scan_eraseblock() - errors
David Woodhouse
dwmw2 at infradead.org
Tue Jul 30 18:21:51 EDT 2002
Allen.Curtis at Thales-IFS.com said:
> While testing power-fail operation of JFFS2, I can consistently
> produce this error which occurs when the partition is mounted.
> jffs2_scan_eraseblock() - Node at 0xXXXXXX {0x1985, 0xe002,
> 0x1985c002) has invalid CRC)
> I do not remember if the error is always CRC related and the Node
> location changes but the hex values displayed within the parens is
> consistent.
> Has anyone seen this before? Some concerns are: 1. Once the error
> occurs, it never gets fixed. 2. There does not appear to be a utility
> to fix errors.
> We are using MVista 2.1, which is 2.4.17. I was able to produce this
> error with only 13 power-cycles.
It's harmless. We were in the middle of writing that node when we lost
power, and hadn't finished writing the payload -- hence the CRC fails.
That's sort of what the CRC is there for. No data were lost -- either we
were garbage-collecting and the original copy of the data will still be on
the flash, or it was a write of new data which never made it to flash
because the write() call never returned -- just as if you pulled the plug a
moment sooner.
It's actually possible to avoid the cosmetic annoyance by marking the node
as obsolete, so we don't check the CRC and hence don't bitch about it
failing. Older versions of JFFS2 did that, as does the current version in
2.4.19-rc3. But it's harmless and expected behaviour.
--
dwmw2
More information about the linux-mtd
mailing list