Re: data loss on jffs2 filesystem on dataflash

Artem B. Bityutskiy
2005-09-22T14:46:32Z

Andrew Victor wrote:
> No. You can't change mtd->erasesize.
> There are other existing applications that access the raw MTD layer and
> want the real erasesize.
Ok guys, I don't actually know the best solution. Just think up
something. I don't care about MTD as much, sorry :-) You may joint the
IRC and talk to tglx1 and others.

My objections are:
1. jffs2_dataflash_setup() should set c->wbuf_pagesize = DataFlash page
2. c->sector_size should be set to DataFlash block size
3. The way how you find out DataFlash page and DataFlash block size must
work on any other DataFlash.
4. When JFFS2 erases an eraseblock, it must erase c->sector_size bytes,
not c->wbuf_pagesize bytes/

I think that's fair, isn't it?