JFFS 2 Question
Brad Campbell
brad at wasp.net.au
Sat Jul 10 05:38:14 EDT 2004
Patrick Hilt wrote:
> Hi list!
> Is there a way to make sure data is being written to physical flash when using
> JFFS2? In other words, After writing a file on a JFFS2 partition, is there
> anything that can be done to make sure that the data is getting written to
> the flash right away? Would "sync" or "fsync" have that effect?
I believe that jffs2 is a synchronous filesystem in any case. By the time your application has
returned from the write() call, the data is on flash.
It certainly worked that way while I was debugging some software that did stupid things like write
800kb files 1 byte at a time.
Regards,
Brad
More information about the linux-mtd
mailing list