Latest jffs2 broken?

Ferenc Havasi havasi at inf.u-szeged.hu
Fri Aug 26 08:24:05 EDT 2005


Hi Pete,

Peter Grayson wrote:

>This is fully reproducible for me. I am running the latest mtd cvs (as
>of 8/23/2005) on a 2.6.10 kernel. I am using a 32MB partition for this
>test, but it is not obvious that the partition size matters. My nand
>part has a 2048-byte page size and 128 kB eraseblock size.
>
>---- Debug output below ----
>
># flash_eraseall -jq /dev/mtd3
># mount /mnt/mtdb3
># touch /mnt/mtdb3/foo
>jffs2: No clean, dirty _or_ erasable blocks to GC from! Where are they
>all?
>jffs2: Couldn't find erase block to garbage collect!
># umount /mnt/mtdb3
># mount /mnt/mtdb3
>kernel BUG in read_unknown at fs/jffs2/readinode.c:353!
>Oops: Exception in kernel mode, sig: 5 [#1]
>TASK = c0601190[74] 'jffs2_gcd_mtd3' THREAD: c044c000
>Last syscall: -1
>NIP [c00ad818] jffs2_do_read_inode_internal+0x804/0x1220
>LR [c00ad1f4] jffs2_do_read_inode_internal+0x1e0/0x1220
>Call trace:
> [c00ae2a4] jffs2_do_crccheck_inode+0x70/0xcc
> [c00b2de4] jffs2_garbage_collect_pass+0x284/0xa80
> [c00b4fc8] jffs2_garbage_collect_thread+0x1a0/0x1f4
> [c0004f6c] kernel_thread+0x44/0x60
>  
>
Is this problem still present at you?

Something very strange happened here. All of the relevant lists are
empty, there is an unknow (?) node that is REF_UNCHECKED.

Did you try which earlier snapshot works correctly? It can be a good
starting point where the problem is. 2005-07-30? 2005-08-01? 2005-08-05?

You also may attach some more from the log...

Bye,
Ferenc





More information about the linux-mtd mailing list