[Yaffs] Partially written block XXX detected bug ???

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Cal Page
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] Partially written block XXX detected bug ???

These come from yaffs_ScanBackwards where chunk is calculated as

chunk = blk * dev->nChunksPerBlock + c

but blk is [1..n] not zero based, so shouldn't it be

chunk = (blk-1) * ...

(IMHO, egad, you've got some 0 based indexes and some 1 based indexes.
It's a sure fire way to introduce bugs. For cleanup, you SHOULD move
everything to 0 based indexes.)

Cal Page