[U-Boot] [U-Boot, v2, 3/8] JFFS2: Only list each directory entry once

Tom Rini trini at konsulko.com
Thu Aug 13 15:17:31 CEST 2015


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 <mark.tomlinson at alliedtelesis.co.nz>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20150813/68e9d0c2/attachment.sig>


More information about the U-Boot mailing list