From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu CASTET Date: Wed, 16 May 2007 14:45:02 +0200 Subject: [U-Boot-Users] RO jffs2 implementation for bootloader In-Reply-To: <20070516123622.GA24073@michl.2n.cz> References: <200705041423.49187.sr@denx.de> <463F3EBD.3020709@parrot.com> <200705071938.20278.sr@denx.de> <20070516110027.GB5782@michl.2n.cz> <464AF64D.2010803@parrot.com> <20070516123622.GA24073@michl.2n.cz> Message-ID: <464AFCCE.5030507@parrot.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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' [...]