[U-Boot-Users] jffs2

Joakim Tjernlund joakim.tjernlund at lumentis.se
Thu Mar 6 11:46:32 CET 2003


> > It is IMHO a bad idea to have the root  filesystem  writable  in  the
> > first  place.  Usually  it  means that you don't understand (probably
> > never bothered about it) what's going on in your filesystem. You  may
> > end  up  easily  with  a  system that fails in the field after just a
> > couple of weeks / months because  of  unintended  and  unknown  write
> > operations.
> 
> You may have guessed it - the rootfs is indeed mounted r/o on our
> system, due to the reason you mentioned. But I in general would like to
> be able to mount it r/w in case of maintainance or during development.
> So jffs2 would surely comes close to what I would like to see. 

You can have jffs2 as rw root fs and still feel safe. JFFS2 can
handle sudden power loss w.r.t JFFS2 meta data. But don't
expect that a file that you are writing to will be "unharmed" at a
sudden power loss. Do your writing in a tmp file and when you are done,
rename() it. Works well here.

   Jocke





More information about the U-Boot mailing list