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