Re: data loss on jffs2 filesystem on dataflash

Jörn Engel
2005-09-20T15:22:44Z

On Tue, 20 September 2005 17:11:00 +0200, Andrew Victor wrote:
>
> > How can this reported from the flash device to the mtd layer and then to
> > jffs2?
>
> Via mtd_info.erasesize
>
> > In the code, I see at the moment only, that in the device driver
> > mtd_info.erasesize is set, later on in jffs2 I see, that this has become
> > the sector_size, which becomes then the wbuf_pagesize.
>
> To reduce the number of erase blocks, JFFS2 may also concatenate a
> number of erase-blocks in a 'virtual block'. That is what sector_size
> and wbuf_pagesize might get set to.

Not any more. That strategy can cause data loss and other fun things
which we don't want.

> > Is here mtd_info.ooblock to be set?
>
> No. All bytes on a DataFlash device are directly addressable, so there
> is not really an OOB area.

Jörn

--
Good warriors cause others to come to them and do not go to others.
-- Sun Tzu