[Yaffs] architecture problem with yaffs2 scanBackwards

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Cal Page
日付:  
To: yaffs@lists.aleph1.co.uk
題目: [Yaffs] architecture problem with yaffs2 scanBackwards
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