Database on JFFS2?

Esben Nielsen esn at cotas.dk
Tue Apr 22 04:07:59 EDT 2003


On Wednesday 16 April 2003 13:35, Thomas Gleixner wrote:
> [...]
> On Wednesday 16 April 2003 12:04, Esben Nielsen wrote:
> > I am not much into flash technology itself (NOR contra NAND), but I know
> > that on our device one write erases and rewrites one block of 128k. Each
> > block can only be erased between 1E5 and 1E6 times. We thus have to be
> > carefull as our device have to live for 20 years (yes, that is what a
> > promise our customers!).
>
> Erase is always a full block (e.g. 128K), but writes happen in small
> chunks.
>

Ah! Now I get it: You have erase a block as a whole and then you can write 
parts of it until it is full? I always believed you had to write a full block 
just to write a single byte, but this does make much more sense to me. We 
have been through similar discussions with TFFS under vxWorks where we 
couldn't find out how many times we were actually allowed to write.

> [...]
>
> JFSS2 does no write on fsync, as data are already written.

Doesn't Linux per default for any filesystem hold a write cache which needs to 
be flushed with fsync()?

Esben



More information about the linux-mtd mailing list