about ubifs

Jamie Lokier jamie at shareable.org
Mon Jun 8 08:01:10 EDT 2009


Artem Bityutskiy wrote:
> > A filesystem-generic "sync-on-close" mount option would be handy for
> > things like that.
> > 
> > Expecting users to call fsync from a shell script is probably a bit much
> > in a lot of applications.
> 
> Not sure about sync-on-every-close, but ex4-ish
> sync-on-close-if-there-was-truncate makes sense, IMO, and we even plan
> to implement this, we just do not have enough time ATM:
> http://www.linux-mtd.infradead.org/doc/ubifs.html#L_sync_exceptions

sync-on-close-if-there-was-a-truncate isn't useful for this case:

    echo 'Stuff' >> logfile
    reboot

I was thinking both sync-on-close and sync-on-close-after-truncate
would be most useful as _generic_ mount options, in the same way that
O_SYNC has generic filesystem support these days.

-- Jamie



More information about the linux-mtd mailing list