root jffs2

Nicolas Pitre nico at cam.org
Wed Jun 13 12:45:15 EDT 2001


On Wed, 13 Jun 2001, David Woodhouse wrote:

>
> nico at cam.org said:
> >  On Wed, 13 Jun 2001, Vipin Malik wrote:
> > > What about a "jffs2erase" routine that not only erases the flash sectors
> > > but also writes out this "signature" at the start of every erase block.
> > > This way one can mount an empty JFFS2 fs on a MTD partition erased by
> > > jffs2erase?
>
> > This is IMHO not the real solution.
>
> Why? No other filesystem can be mounted on empty media without some form of
> mkfs.

JFFS2 is far from being a conventional filesystem, no?

It is really elegant to just erase the flash partition and mount right away.
Not yet another special tool please.

> In fact you wouldn't need to do every block. All you'd have to do is put
> the 12-byte cleanmarker node at the beginning of the first block and it'd
> be sufficient.

This is ugly.

> You could do this with a suitable 'echo' command.

This is ridiculous, especially when the fix is probably about a one or two
line change in JFFS2 code.  I'm currently looking at it.  Expect the diff
soon.

Let's avoid the hassle of requiring people to need yet another tool.


Nicolas





More information about the linux-mtd mailing list