jffs2: too few erase blocks
Jörn Engel
joern at logfs.org
Mon Oct 29 17:54:58 EDT 2007
On Mon, 29 October 2007 20:51:25 +0000, Jamie Lokier wrote:
>
> When you say "sync", do fdatasync() / fsync() on open files and
> directories flush the necessary blocks from wbuf for those
> files/directories data and their inode metadata, for JFFS2?
>
> I have been calling sync(), but I wonder if fdatasync/fsync do as they
> are supposed to?
>
> (If you know about other fses like LogFS/Yaffs/UBIFS that would be
> handy, too).
fsync/fdatasync should work on logfs. If you know a good way to test
this, I'd add it to my suite of regression tests. Right now I have to
rely on reading the code.
> Probably all are unnecessary in my specific application, as I use a
> JFFS2 with cfi_cmdset_0002, which I get the impression doesn't buffer
> any writes anyway. But I like to get the application code right, in
> case I change to another device.
Any filesystem should follow the standards here. Anything else is a
bug.
Jörn
--
Victory in war is not repetitious.
-- Sun Tzu
More information about the linux-mtd
mailing list