Author: wmb Date: 2007-09-19 04:27:06 +0200 (Wed, 19 Sep 2007) New Revision: 616
Modified: ofw/fs/jffs2/jffs2.fth Log: JFFS2 - OLPC trac #2818 - give up quickly when non-JFFS2-node data is found.
Modified: ofw/fs/jffs2/jffs2.fth =================================================================== --- ofw/fs/jffs2/jffs2.fth 2007-09-18 01:23:25 UTC (rev 615) +++ ofw/fs/jffs2/jffs2.fth 2007-09-19 02:27:06 UTC (rev 616) @@ -633,7 +633,8 @@
\ This assumes that the entire erase block is in memory : another-node? ( adr -- false | adr' true ) - eb-end swap ?do + dup h# 100 + eb-end umin ( adr end-adr ) + swap ?do i w@ jffs2-magic = if i header-crc? if i +raw-node eb-end u<= if