X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=yaffs_yaffs2.c;h=94ba7df34541c72d75d58aa7ea74c214eeca32b3;hb=570d9b811895119f6b3411678cbdcaa27226f403;hp=ab175b9e24d3fbae9aa0afaf74e894c3670c49dd;hpb=4a700fe570d217c2c5df87070db7c2652bc0eaaf;p=yaffs2.git diff --git a/yaffs_yaffs2.c b/yaffs_yaffs2.c index ab175b9..94ba7df 100644 --- a/yaffs_yaffs2.c +++ b/yaffs_yaffs2.c @@ -1132,7 +1132,8 @@ int yaffs2_ScanBackwards(yaffs_Device *dev) } else if (tags.objectId > YAFFS_MAX_OBJECT_ID || tags.chunkId > YAFFS_MAX_CHUNK_ID || - (tags.chunkId > 0 && tags.byteCount > dev->nDataBytesPerChunk)) { + (tags.chunkId > 0 && tags.byteCount > dev->nDataBytesPerChunk) || + tags.sequenceNumber != bi->sequenceNumber ) { T(YAFFS_TRACE_SCAN, (TSTR("Chunk (%d:%d) with bad tags:obj = %d, chunkId = %d, byteCount = %d, ignored"TENDSTR), blk, c,tags.objectId, tags.chunkId, tags.byteCount)); @@ -1313,7 +1314,6 @@ int yaffs2_ScanBackwards(yaffs_Device *dev) in->valid = 1; if (oh) { - in->variantType = oh->type; in->yst_mode = oh->yst_mode; #ifdef CONFIG_YAFFS_WINCE @@ -1331,11 +1331,11 @@ int yaffs2_ScanBackwards(yaffs_Device *dev) in->yst_ctime = oh->yst_ctime; in->yst_rdev = oh->yst_rdev; + in->lazyLoaded = 0; + #endif - } else { - in->variantType = tags.extraObjectType; + } else in->lazyLoaded = 1; - } in->hdrChunk = chunk;