[Yaffs] [YAFFS] How should I implement yflash_MarkNANDBlockB…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: rogerz
Date:  
To: yaffs
Subject: [Yaffs] [YAFFS] How should I implement yflash_MarkNANDBlockBad in direct interface?
The sample code in direct folder doesn't implement yflash_MarkNANDBlockBad
fully. does it?

In yaffs_ramem2k.c, nandemu2k_MarkNANDBlockBad simply clear all the content
of a PackedTags2.
nandemul2k_QueryNANDBlock calls nandemul2k_ReadChunkWithTagsFromNAND to read
tags unpacked from PackedTags2
During the unpack procedure, yaffs_UnpackTags always mark a block not bad.

So I don't think yflash_MarkNANDBlockBad can actually mark a block bad. Is
it true?