Database on JFFS2?
Jörn Engel
joern at wohnheim.fh-wedel.de
Tue Apr 15 11:39:34 EDT 2003
On Tue, 15 April 2003 17:06:36 +0200, Esben Nielsen wrote:
>
> Yes, but are those writes syncronices with actual flash writes such I am sure
> that a write is _physically_ complete when fsync() returns?
> They certainly ought to be or many applications would get in trouble with
> corrupt data at a sudden reboot.
>
> Let us assume it is so. Then I need to tweak sqlite to only force an fsync()
> when the JFFS2 layer is ready to commit anyway to avoid too many writes.
> Any idea of how to do that?
On NOR, there is absolutely no point in avoiding many writes. Write
the same amount of data in fewer bigger chunks and you have the same
problems.
If you can reduce the amount of data written to flash, do that.
Jörn
--
Courage is not the absence of fear, but rather the judgement that
something else is more important than fear.
-- Ambrose Redmoon
More information about the linux-mtd
mailing list