Re: scan.c & ACCURATE

David Woodhouse
2002-02-27T08:06:18Z

Joakim.Tjernlund@lumentis.se said:
> > You're trusting ri.totlen before verifying ri.node_crc. Naughty.
> Totlen has been checked by jffs2_scan_eraseblock() before calling
> jffs2_scan_inode_node(), but that is not obvious. Move it to after the
> CRC check if you like.

Sorry, was confusing node_crc with hdr_crc. You're absolutely right. What
I've actually done is move the logic to jffs2_erase_eraseblock(), and made
it trigger for all types of node.

--
dwmw2