JFFS2 problem with filename length > 7

David Woodhouse dwmw2 at infradead.org
Wed Sep 27 17:35:02 EDT 2006


Curiouser and curiouser. At this point...

> [JFFS2 DBG] (876) jffs2_build_inode_pass1: increased nlink for child "88888888" (ino #9)
> [JFFS2 DBG] (876) jffs2_build_inode_pass1: increased nlink for child "666666" (ino #7)
> [JFFS2 DBG] (876) jffs2_build_inode_pass1: increased nlink for child "7777777" (ino #8)
> [JFFS2 DBG] (876) jffs2_build_inode_pass1: increased nlink for child "999999999" (ino #10)
> [JFFS2 DBG] (876) jffs2_build_inode_pass1: increased nlink for child "aaaaaaaaaa" (ino #11)

... those nodes seem to be perfectly fine. Yet at _this_ point...

> [JFFS2 DBG] (876) jffs2_do_read_inode: read inode #1
> [JFFS2 DBG] (876) jffs2_do_read_inode_internal: ino #1 nlink is 1
> [JFFS2 DBG] (876) jffs2_get_inode_nodes: ino #1
> [JFFS2 DBG] (876) jffs2_get_inode_nodes: read 40 bytes at 0x1c06bc(2).
> [JFFS2 DBG] (876) jffs2_add_fd_to_list: add dirent "aaaa", ino #11
> [JFFS2 DBG] (876) jffs2_get_inode_nodes: read 40 bytes at 0x1c0600(2).
> [JFFS2 DBG] (876) jffs2_add_fd_to_list: add dirent "9999", ino #10
> [JFFS2 DBG] (876) jffs2_get_inode_nodes: read 40 bytes at 0x1c0548(2).
> [JFFS2 DBG] (876) jffs2_add_fd_to_list: add dirent "8888", ino #9
> [JFFS2 DBG] (876) jffs2_get_inode_nodes: read 40 bytes at 0x1c0490(2). 

... 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.

-- 
dwmw2





More information about the linux-mtd mailing list