From manningc2@actrix.gen.nz Sun Apr 01 22:52:03 2012
Received: from smtp.scorch.co.nz ([27.110.127.199] helo=scorch.co.nz)
	by stoneboat.aleph1.co.uk with smtp (Exim 4.72)
	(envelope-from <manningc2@actrix.gen.nz>) id 1SESgp-0001P7-Qd
	for yaffs@lists.aleph1.co.uk; Sun, 01 Apr 2012 22:52:03 +0100
Received: (qmail 6777 invoked by uid 453); 1 Apr 2012 21:51:51 -0000
X-Virus-Checked: Checked by ClamAV on scorch.co.nz
Received: from ptr157.scorch.co.nz (HELO linux-dual-head.local)
	(27.110.120.157) by scorch.co.nz (qpsmtpd/0.83) with ESMTP;
	Mon, 02 Apr 2012 09:51:45 +1200
From: Charles Manning <manningc2@actrix.gen.nz>
To: yaffs@lists.aleph1.co.uk
Date: Mon, 2 Apr 2012 09:51:36 +1200
User-Agent: KMail/1.9.10
References: <CAJC8qy-ie-A6coP4=GuF4qPEkTmGrJEvngLOwQBaNzQs0ROzQw@mail.gmail.com>
In-Reply-To: <CAJC8qy-ie-A6coP4=GuF4qPEkTmGrJEvngLOwQBaNzQs0ROzQw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <201204020951.36159.manningc2@actrix.gen.nz>
X-SA-Exim-Connect-IP: 27.110.127.199
X-SA-Exim-Mail-From: manningc2@actrix.gen.nz
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-1.0 required=4.5 tests=AWL,BAYES_00,SPF_NEUTRAL
	autolearn=no version=3.3.1
X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:51:10 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Subject: Re: [Yaffs] i've another question about yaffs2_scan_chunk?
X-BeenThere: yaffs@lists.aleph1.co.uk
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Discussion of YAFFS NAND flash filesystem <yaffs.lists.aleph1.co.uk>
List-Unsubscribe: <http://lists.aleph1.co.uk/cgi-bin/mailman/options/yaffs>,
	<mailto:yaffs-request@lists.aleph1.co.uk?subject=unsubscribe>
List-Archive: <http://lists.aleph1.co.uk/lurker/list/yaffs.html>
List-Post: <mailto:yaffs@lists.aleph1.co.uk>
List-Help: <mailto:yaffs-request@lists.aleph1.co.uk?subject=help>
List-Subscribe: <http://lists.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs>,
	<mailto:yaffs-request@lists.aleph1.co.uk?subject=subscribe>
X-List-Received-Date: Sun, 01 Apr 2012 21:52:03 -0000

If you skip some chunks in a block then that should be fine.
However... yaffs checks the first chunk in a block to determine if the block 
is used. If you skip that chunk then yaffs will think the block is empty and 
will not scan it.

On Saturday 31 March 2012 14:10:44 Ezio Zhang wrote:
> what i mean is that  i may modify something about yaffs.as a result,it will
> occurs that page 1 ,2 ,3 wrote,and page 4 is skipped ,and then write the
> left which does not occurs in current yaffs.if this happens,can yaffs
> handle it ?
>
> On 2012-03-29 17:55, Charles Manning wrote:
> > 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.
>
> ----
> Regards,
> Ezio.



