data loss on jffs2 filesystem on dataflash

Artem B. Bityutskiy dedekind at yandex.ru
Thu Sep 22 10:45:50 EDT 2005


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?

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.




More information about the linux-mtd mailing list