JFFS2 determine writing state
Josh Boyer
jwboyer at gmail.com
Sat Jan 12 15:15:08 EST 2008
On Sat, 12 Jan 2008 10:03:43 +0000
Jamie Lokier <jamie at shareable.org> wrote:
> Josh Boyer wrote:
> > The open call doesn't cause any writes, and close
> > is supposed to flush all pending writes before it returns.
>
> Oh, that's interesting. So on JFFS2, fsync() is unnecessary before close()?
>
> (On other filesystems it's necessary, of course).
To be honest, it doesn't really matter if it's necessary or not.
Writing an application to do as little as possible based on implicit
knowledge of the underlying filesystem seems like a really bad idea.
Particularly with the behavior of the filesystem can change based on
which config options you have set (writebuffer, etc).
Write you applications to be portable and cautious and you shouldn't
have a problem.
josh
More information about the linux-mtd
mailing list