yaffs2 runs fine forever as long as I mount/dismount, but if I crash, it
scrambles the file system.
Specifically, garbage collection that moves chunks out of blocks re-tags
the chunk with its new sequenceNumber. Then, if the system crashes,
scanBackwards will receive this moved chunk out of order.
Typically, I get a lot of files in lost+found.
Is there a fix?
Does anyone have any idea how I should fix it? I was thinking of tagging
certain blocks as containing mixed sequenceNumbers. Then, scanBackwards
would have a clue when it runs into one.
Cal Page