data loss on jffs2 filesystem on dataflash
Jörn Engel
joern at wohnheim.fh-wedel.de
Tue Sep 20 11:22:33 EDT 2005
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
More information about the linux-mtd
mailing list