Thanx Peter This is now fixed. This is not a problem in the yaffs2 tree. FYI: yaffs1 is "bug-fix-only" (unless too hard to fix). The yaffs2 tree gets any new development/features. -- Charles On Saturday 05 November 2005 07:52, Peter Barada wrote: > In the original YAFFS tree, I think there's a bug in that an assumption > is made that there are 32 chunks per block in the test of the return > from yaffs_FindAndDeleteChunkInFile(). Should this be changed to: > > chunkId = yaffs_FindAndDeleteChunkInFile(in,i,NULL); > if(chunkId < (dev->internalStartBlock * dev->nChunksPerBlock) || > chunkId >= ((dev->internalEndBlock+1) * dev->nChunksPerBlock)) > { > //T(("Found daft chunkId %d for %d\n",chunkId,i)); > } > > ???