about ubifs

Jamie Lokier jamie at shareable.org
Sun Jun 7 21:35:28 EDT 2009


Corentin Chary wrote:
> On Fri, Jun 5, 2009 at 3:03 PM, tommy<jiujin.hong at mid-fun.com> wrote:
> > no,i didn't fsync when i close file !
> >
> > did ubifs driver can achieve "fsync" when user modify some file and
> > close with save ?
> 
> For critical data, you need to call fsync to be sure the data is
> stored on the flash.
> There is also a "sync" option for ubifs, but this will hurt performance a lot.

That reminds me.

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.

-- Jamie



More information about the linux-mtd mailing list