"add only" fs

David Woodhouse dwmw2 at infradead.org
Tue Jun 12 06:23:02 EDT 2001


pollastri at iriti.cnr.it said:
> a common problem in embedded systems is to log important data in a way
> safe against power failure and software bugs. The question is: may be
> jffs2 the right place to introduce an "add only" protection? It can be
> at partition level, in such a way that mounting that partition as "add
> only" I am protected against loss of data, because I can only create
> new files and/or append data to existing files and never delete or
> truncate a file unless the partition is remounted rw. 

JFFS2 _has_ to move data around, even data which haven't changed. If you 
want 100% guarantees (or as close as possible) that some parts can't 
change, put them in a separate partition which you mount readonly.

--
dwmw2






More information about the linux-mtd mailing list