JFFS2 as transactional FS (in other words: how to be sure that data have been writtent correctly from userspace)

Jörn Engel joern at lazybastard.org
Thu Mar 8 08:12:58 EST 2007

On Thu, 8 March 2007 13:04:04 +0000, David Woodhouse wrote:
> On Thu, 2007-03-08 at 13:54 +0100, Jörn Engel wrote:
> > 
> > Last time I checked, JFFS2 got one case wrong.  Don't remember which
> > one,
> > but there are not that many to check:
> >  - mount -o sync
> >  - open(..., O_SYNC);
> I don't think we've implemented those two at all.

Then you have your bug report.  Ignoring those was ok in 2001, but with
wbuf I would at least expect JFFS2 to return an error.

One option for implementing this would be to do the write, call schedule
to let other processes write something, then check whether the buffer
has been flushed out by other processes.  Or do some GC to fill the
buffer with useful data.  Anything but padding it.


The strong give up and move away, while the weak give up and stay.
-- unknown

More information about the linux-mtd mailing list