root jffs2

Nicolas Pitre nico at cam.org
Wed Jun 13 11:56:59 EDT 2001


On Wed, 13 Jun 2001, David Woodhouse wrote:

>
> vipin.malik at daniel.com said:
> >  Does this mean that you can no longer mount JFFS2 on an erased
> > (blank) flash mtd device and hand populate the blank fs ?
>
> It refuses to mount if it would be erasing some blocks to start with and
> it's found no valid nodes. Thinks.... if the device is completely
> pre-erased then it'd be erasing every block 'to make sure', so it'd fail to
> mount.

That's not what I though...

> We could special-case this - if the device _was_ entirely empty beforehand
> - if it contained only 0xFF, then we can go ahead with the mount. Only if
> it actually had some data on should we fail.

Exactly.


Nicolas





More information about the linux-mtd mailing list