[Yaffs] "garbage" blocks during mount

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Amir Comforti
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] "garbage" blocks during mount
Hi,

I am working with yaffs2 with "direct" approach (no linux).
During development of my system, there could be a case where some of the blocks on NAND which should be dedicated for yaffs partition were written previously by some other layer.
Sometimes, yaffs mount succeeds, but those several blocks are kept in NEEDS_SCANNING state and yaffs can't use them.
Is there a way for me to know (i.e. during or after yaffs mount) that there are blocks that yaffs can't handle, so I will erase them?

Thanks

-------------------------------------------------------------------------
Amir Comforti
Zoran Microelectronics Ltd
Phone:  +972 4 8546310
Email:   <mailto:amir.comforti@zoran.com>
Web:    www.zoran.com<http://www.zoran.com/>
-------------------------------------------------------------------------