as found in yaffs_find_alloc_block(),yaffs checks blockinfo before alloc new block that only empty block can be allocated.

On 2011-12-07 02:21, Ezio Zhang wrote:
> as subject,in the source code of yaffs i found only the measures that seek
> and mark badblock,but there's no measure to check blocks wether is bad or
> ok before write or read the flash. if in Linux it's ok,the badblock
> management left to MTD,but if i use it without os support it's not
> ok.should i do this myself ?
>
>
> --
> Best wishes for you,
> Ezio.