I use jffs2 (version from ftp, 20030210) on an Intel xscale pxa250, with one Intel 28f128 in 16 Bit mode. I occasionally observe the following problem, which I consider rather severe:
- mount an empty partition as jffs2 on an Intel 28f128K3 flash.
- copy a large directory tree to it
- *immediately* overwrite that tree with itself
- *immediately* copy another large oversized (too big for this partition) tree
Sometimes the last copy doesn't produce a "no space" error message. Rather, it does not return for at least half an hour, which is the longest time I waited for completion.
Moreover, if I stop copying by ctrl-c, and try to unmount the partition, the unmount locks up as well.
I have put some code into the cfi driver to observe sector erasing. I noticed that after I have interrupted the copy, sectors are still erased every other second or such. This keeps going on and on. Looks to me like the garbage collector is in a kind of endless loop here.
If I reset the system, on reboot I get some errors concerning node CRCs in one of the last blocks that were erased, then everything appears to be fine.
Has anyone else observed such problems?
--kub
jffs2 occasionally locking up?
Quoted 6 lines · kai-uwe.bloem at auerswald.de
- mount an empty partition as jffs2 on an Intel 28f128K3 flash.
- copy a large directory tree to it
- *immediately* overwrite that tree with itself
- *immediately* copy another large oversized (too big for this partition) tree
Sometimes the last copy doesn't produce a "no space" error message. Rather,
Quoted 8 lines
it does not return for at least half an hour, which is the longest time I waited for completion.
Moreover, if I stop copying by ctrl-c, and try to unmount the partition, the unmount locks up as well.
I have put some code into the cfi driver to observe sector erasing. I noticed that after I have interrupted the copy, sectors are still erased every other second or such. This keeps going on and on. Looks to me like the garbage collector is in a kind of endless loop here.
If you copy too much data to the partition, it tries to garbage collect to give you more space on the device. The endless loop seems true.
Could you please set JFFS2_DEBUG=1 and provide a log-output. Don't forget to echo 9 >/proc/sys/kernel/printk before starting your copy session. Please compress the log and mail it to me in private (will be some MB) or provide it any location for download
Signature · 5 lines
Thomas ________________________________________________________________________ linutronix - competence in embedded & realtime linux http://www.linutronix.de mail: tglx at linutronix.de