Re: jffs2_get_inode_nodes(): Data CRC failed on NAND device

David Woodhouse
2005-02-15T00:03:06Z

On Mon, 2005-02-14 at 19:04 +0100, Thomas Gleixner wrote:
> On Mon, 2005-02-14 at 18:58 +0100, Frédéric Janot wrote:
> > >JFFS2 on NAND flash uses a page buffer. It is flushed to the flash when
> > >it is full, or when you do fsync, sync or umount.
> > >
> > Does that mean that I have to call fsync each time after fclose a file ?

Yes. It's precisely the same as with other file systems. If you write to
a file, close it and then lose power immediately, your data may be lost.
It's not guaranteed to be on the medium until you sync.

> > Even if I do not edit some files, I get this kind of error. Does that
> > mean something (jffs2 itself or other) write some data to the flash all
> > the time ?
>
> No, jffs2 does not write data just for fun. There is some application,
> script, daemon writing/modifying file(s).

Or garbage collection, but in that case no data are lost. It was just
copying from one part of the flash to another, and the old copy will
still be intact.

--
dwmw2