
16 May
2007
16 May
'07
2:36 p.m.
On Wed, May 16, 2007 at 02:17:17PM +0200, Matthieu CASTET wrote:
I found that jffs2_1pass_read_inode code is buggy on garbage collected image : we should load inode in version order (small first). If we don't, obsolete inode could be put in the final file.
ino=4 offset=5 dsize=5 version=4 ino=4 offset=0 dsize=5 version=1 ino=4 offset=5 dsize=5 version=2
The code will load version 4, version 1 and version 2. In the dest we will have version 1 & 2 instead of version 1 & 4.
Hmm, did you #define CFG_JFFS2_SORT_FRAGMENTS ?
Best regards, ladis