
Ladislav Michl a écrit :
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 ?
I tried, but it doesn't work :
jffs2_nand_1pass.c: In function 'insert_node': jffs2_nand_1pass.c:102: error: 'struct b_list' has no member named 'listCompare' jffs2_nand_1pass.c:104: error: 'struct b_list' has no member named 'listLast' jffs2_nand_1pass.c:104: error: 'struct b_list' has no member named 'listCompare' jffs2_nand_1pass.c:104: error: 'struct b_list' has no member named 'listLast' jffs2_nand_1pass.c:105: error: 'struct b_list' has no member named 'listLast' jffs2_nand_1pass.c:110: error: 'struct b_list' has no member named 'listCompare' jffs2_nand_1pass.c:112: error: 'struct b_list' has no member named 'listLoops' jffs2_nand_1pass.c:115: error: 'struct b_list' has no member named 'listLast' [...]