Need help understanding jffs2 mount activity

David Woodhouse dwmw2 at infradead.org
Mon May 5 14:40:51 EDT 2003


On Mon, 2003-05-05 at 15:06, Mike Kelly wrote:
> If the 700KiB file is copied then deleted, would this
> result in 4KiB nodes for the new file? 

Yes, assuming you copy it sensibly. If you read and write in smaller
blocks then no. The 'cp' command should do the right thing.

>  If so, shouldn't the bootup time be quicker, since there are
> less nodes to CRC check?  The bootup time seems to
> remain the same, even after several reboots.

It _should_ be somewhat quicker since there are fewer nodes to CRC
check, hence fewer node headers -- obviously there's still the same
amount of data. 

The real answer, though, is to simply avoid checking all those CRCs at
mount time, and to postpone the checking till later. That's implemented
in the latest code in CVS -- updating to that should give you a fairly
dramatic improvement, especially if you also implement the 'point'
method in your board's map driver. 

-- 
dwmw2





More information about the linux-mtd mailing list