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

Martin Egholm Nielsen
2005-02-15T19:38:54Z

Hi,

>>>>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.
Well, as someone told me the other day on the IRC-channel, the
writebuffer is flushed automatically if the buffer has not been accessed
for X (2?) seconds (controlled by the VFS, right?)...

Correct me if I'm wrong...

// Martin