JFFS2 and frequent/small write operations

David Woodhouse dwmw2 at infradead.org
Mon Apr 4 14:55:33 EDT 2005


On Mon, 2005-04-04 at 17:15 +0000, Sergei Sharonov wrote:
> I was told that O_SYNC flag for open does not work with JFFS2 (!?).

You misunderstood. On NOR flash, O_SYNC does nothing because JFFS2 is
entirely synchronous anyway. On NAND flash, I believe that O_SYNC does
what it is supposed to -- any write will have reached the medium before
the write() system call returns.

This has nothing to do with atomicity of writes with respect to power
failure.

-- 
dwmw2





More information about the linux-mtd mailing list