Lost space on JFFS2 partition

John Hall john-news1 at cambridgetechgroup.com
Thu Aug 28 09:58:31 EDT 2003


On 28 August 2003 12:27, David Woodhouse <dwmw2 at infradead.org> wrote:

> > I wasn't sure how JFFS2 does its writes, i.e. whether it did each
> > write immediately to the flash, or whether it would build a page or
> > block's worth before writing to the flash. Now I see that each write
> > is done immediately.

> Not on NAND. We _can't_ just write out every tiny node as it happens,
> since we could violate the writes-per-page limit for NAND. We batch
> writes with a write-behind buffer, flushing it if it's got dirty data
> in after a certain amount of time. It was that flushing which was
> causing the problem. Now we trigger garbage-collection to fill it,
> instead of just padding and wasting the space.

OK, that makes sense.

Is the current CVS head considered stable, and will it work correctly
under 2.4 (in fact armlinux 2.4.18-rmk7)?

On a completely different note, is it possible to disable compression in
JFFS2 without hacking the sourcecode?

Cheers,
John






More information about the linux-mtd mailing list