Re: [Yaffs] i've another question about yaffs2_scan_chunk?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: yaffs
Subject: Re: [Yaffs] i've another question about yaffs2_scan_chunk?
On Thursday 29 March 2012 13:58:05 Ezio Zhang wrote:
> when start up,yaffs scan every chunk of a block that the summary not
> written.
> when it read the chunk's oob,if it is an empty chunk,the tags it read if
> full of 0xff,so the flag chunk_used should not be 0 and the judgement of
> "if (!tag.chunk_used)" should never enter, am i right?


Erased flash starts off 0xff and can then be changed by setting 1 bits to 0
bits.

If the tags are full of 0xff then chunk_used should be 0.

> so in my understanding ,the function dev->param.read_chunk_tags_fn shoud do
> something rather than copy data from flash?
>
> and when writing data to flash,i cannot skip one or more chunks then write
> another one?


I don't understand quite what you mean here can you give a slightly more
detailed descriprion.

> thansk very much.
> ----
> Regards,
> Ezio.