Re: data loss on jffs2 filesystem on dataflash

Peter Menzebach
2005-09-15T07:39:15Z

Thanks for your help!

I found (at least partly) out, whats happening: Some parts of code are
relying still on the assumption, that the erase size/sector size is
fixed to a power of 2.

Example nodelist.c:
len = ofs & (c->wbuf_pagesize - 1)

So the jffs2 code is broken, if it *should* support erase sizes which
are not 2^X.

Best regards
Peter

--
Peter Menzebach
Menzebach und Wolff IT-Consulting GbR
Phone +49 751 355 387 1