JFFS2 problem with filename length > 7

Martin Wedepohl martinatgd at gmail.com
Thu Sep 28 14:00:09 EDT 2006


> ... they're screwed. The dump you sent looks find -- but can you make it
> print what it sees when it reads the node from the flash in
> jffs2_get_inode_nodes()? That's where it seems to be screwed.
>

I used the JFFS2_ERROR function to debug the output and found that the
filenames are truncated in the read_direntry function.  Here is the
output.

>From looking at the offset in FLASH all the reads start on the word
0x1985e001 which looks okay.

Let me know if you need more or have any more pointers.

JFFS2 error: (872) read_direntry: already:  0: read: 10: rd->nsize: 10:
            ref_offset(ref): 0x000006bc: fd->name: aaaa
JFFS2 error: (872) read_direntry: already:  0: read:  9: rd->nsize:  9:
            ref_offset(ref): 0x00000600: fd->name: 9999
JFFS2 error: (872) read_direntry: already:  0: read:  8: rd->nsize:  8:
            ref_offset(ref): 0x00000548: fd->name: 8888
JFFS2 error: (872) read_direntry: already:  0: read:  7: rd->nsize:  7:
            ref_offset(ref): 0x00000490: fd->name: 7777777
JFFS2 error: (872) read_direntry: already:  0: read:  6: rd->nsize:  6:
            ref_offset(ref): 0x000003d8: fd->name: 666666
JFFS2 error: (872) read_direntry: already:  0: read:  5: rd->nsize:  5:
            ref_offset(ref): 0x00000320: fd->name: 55555
JFFS2 error: (872) read_direntry: already:  0: read:  4: rd->nsize:  4:
            ref_offset(ref): 0x0000026c: fd->name: 4444
JFFS2 error: (872) read_direntry: already:  0: read:  3: rd->nsize:  3:
            ref_offset(ref): 0x000001b8: fd->name: 333
JFFS2 error: (872) read_direntry: already:  0: read:  2: rd->nsize:  2:
            ref_offset(ref): 0x00000104: fd->name: 22
JFFS2 error: (872) read_direntry: already:  0: read:  1: rd->nsize:  1:
            ref_offset(ref): 0x00000050: fd->name: 1




More information about the linux-mtd mailing list