Re: scan.c & ACCURATE

Joakim Tjernlund
2002-02-27T07:23:32Z

>
> Joakim.Tjernlund@lumentis.se said:
> > Patch 1 skips scanning of inodes and dirents which are obsoleted.
> > Improves scan speed.
>
> 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.

Jocke