문제

I'm newbie to JFFS2 file systems. I'm looking for a reference/article/paper on garbage collection algorithm used in JFFS2. It would be great if anyone steer me to that.

Thanks.

-Sam

도움이 되었습니까?

해결책

The best technical description of JFFS2 is the original paper.

JFFS2 writes sequentially from the beginning of the device all the way to the end and then starts over again at the beginning. On this and subsequent passes, it erases blocks that were written on previous passes. It erases all of the dirty blocks and some fraction of the clean ones too (for wear levelling). Before erasing them, it writes new copies of everything in those blocks that's still needed. The rest of the contents of the block which isn't needed anymore (the garbage) goes away in the erase.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top