[resend] Problem with copying a file to JFFS2 partition

Manoj manoj23 at gmail.com
Wed Apr 1 15:13:25 EDT 2009


Sorry for the repost, but trying again.

Hi,

I have two mtd partitions on a NAND flash and one of them keeps the
jffs2 filesystem. I can mount the jffs2 fs, read and write files off
of the mounted directory. But when I  copy a big file (11 MB) to any
location in the mounted directory, the call never returns. The
partition is 112MB big. Sometimes, a small file copy can produce the
problem. The jffs2 fs was created with cleanmarker enabled.

I enabled jffs2 debugging and I see this in dmesg:

[  167.250000] jffs2_erase_pending_blocks completed
[  167.250000] jffs2_reserve_space: ret is -11
[  167.250000] jffs2_erase_pending_blocks completed
[  167.250000] jffs2_reserve_space: ret is -11
[  167.250000] jffs2_erase_pending_blocks completed
[  167.250000] jffs2_reserve_space: ret is -11
[  167.250000] jffs2_erase_pending_blocks completed
[  167.250000] jffs2_reserve_space: ret is -11
[  167.250000] jffs2_erase_pending_blocks completed
[  167.250000] jffs2_reserve_space: ret is -11
[  167.250000] jffs2_erase_pending_blocks completed
[  167.250000] jffs2_reserve_space: ret is -11
[  167.250000] jffs2_erase_pending_blocks completed
[  167.250000] jffs2_reserve_space: ret is -11
[  167.250000] jffs2_erase_pending_blocks completed
[  167.250000] jffs2_reserve_space: ret is -11

It seems like jffs2 can't find a block to write to? What could be wrong?

Please cc me in the reply as I am not subscribed.

Thanks.



More information about the linux-mtd mailing list