bootldr jffs2 scan time.

From: David Woodhouse (dwmw2@infradead.org)
Date: Wed Sep 11 2002 - 11:00:03 EDT


bootldr/load_kernel/src/jffs2.c line 1208...

        node = (struct jffs2_unknown_node *)(part->offset + offset);
        if (node->magic == JFFS2_MAGIC_BITMASK && hdr_crc(node)){
            // if its a fragment add it
            if (node->nodetype == JFFS2_NODETYPE_INODE &&
                inode_crc((struct jffs2_raw_inode *)node)){
                if (!(pL->fragListTail = add_node(pL->fragListTail,&(pL->fragListCount),
                                                 &(pL->fragListMemBase)))){
                    putstr("add_node failed!\r\n");
                    return 0;
                }

Ditch the node crc check, check it only for the nodes you're actually
bothering to try to read. I fixed this in the kernel and it now does a
proper mount in under a second.

-- 
dwmw2


This archive was generated by hypermail 2.1.5 : Fri Jan 17 2003 - 17:47:04 EST