
HeLei leon.he@msn.com wrote on 03/11/2009 09:21:04:
- Don't scan more than you have to, that is, ls/read /some/file
should only scan and keep records to do the ls/read of that particular file.
So we have to have an index, or something like that, to tell which file in which EBs. This index is always generated by the scan for the first time. The only workaround like this idea is to divide the flash into several paritions, the scan is performed on certain partition each time.
Forgot to comment on this one :) I belive u-boot creates a cache for the whole FS a first access so that later accesses are fast. I think this is suboptimal. Consider the common case to boot a linux kernel, you only want to get at the kernel image so creating a cache for the whole FS is a waste.
Partitions works too, but is a waste of flash and it can be hard to get the partition size(s) right.
Jocke