From: Tom Rini Date: Thu, 13 Aug 2015 09:17:31 -0400 Subject: [U-Boot] [U-Boot, v2, 3/8] JFFS2: Only list each directory entry once In-Reply-To: <1435725509-12300-4-git-send-email-mark.tomlinson@alliedtelesis.co.nz> References: <1435725509-12300-4-git-send-email-mark.tomlinson@alliedtelesis.co.nz> Message-ID: <20150813131731.GK25532@bill-the-cat> 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, Jul 01, 2015 at 04:38:24PM +1200, Mark Tomlinson wrote: > If multiple versions of a file exist, only the most recent version > should be used. The scheme to write 0 for the inode in older versions > did not work, since this would have required writing to flash. > > The only time this caused an issue was listing a directory, where older > versions of the file would still be seen. Since the directory entries > are sorted, just look at the next entry in the list, and if it's the same > move to that entry instead. > > Signed-off-by: Mark Tomlinson Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: