Re: data loss on jffs2 filesystem on dataflash

Peter Menzebach
2005-09-21T16:10:33Z

Artem B. Bityutskiy wrote:
>
> But.. Argh! Look at line 488: if (pad && !jffs2_dataflash(c))
>
> Why !jffs2_dataflash(c)??? I bet this is the bug.
>
Nope, it's OK there, only when padding.

In my logs, wbuf_len is always 0.

Then when I write the flash,
free_size, wasted_size, used_size is adjusted with 0.

How is the intention of the write buffer?
- I write 10 bytes at the beginning
- Then after 2 seconds, the buffer is flushed
- I it correct, to adjust with wbuf_len, or must it be wbuf_size?

Best regards
Peter

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