NAND flash question

David Woodhouse dwmw2 at infradead.org
Tue Jun 28 14:30:59 EDT 2005


On Tue, 2005-06-28 at 09:41 -0700, Charles Tilbury wrote:
> In part, I want to get rid of the messages.  They make the marketing
> guys nervous.  <<grin>>  I may just supress them using comments.  What
> I really need is to make sure that the user land data gets flushed to
> NAND before power loss.   That seems like a JFFS2 issue, do you agree?

Not really. Userland data are flushed to the medium on fsync() or sync()
just as with other file systems. If a write() call has _just finished
when the power is lost, there's no guarantee that _any_ file system will
have committed that write to the medium already. (Unless you were using
O_SYNC, which we don't support for JFFS2).

-- 
dwmw2





More information about the linux-mtd mailing list