From v@renyi.hu Fri Jun 12 19:31:21 2009
Received: from mirror.math-inst.hu ([193.224.79.10])
	by stoneboat.aleph1.co.uk with esmtps
	(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69)
	(envelope-from <v@renyi.hu>) id 1MFBX3-0004yB-Mi
	for yaffs@lists.aleph1.co.uk; Fri, 12 Jun 2009 19:31:21 +0100
Received: from hexagon.math-inst.hu ([193.224.79.1])
	by mirror.math-inst.hu with esmtps(TLSv1:AES256-SHA:256) (Exim)
	from <v@renyi.hu>id 1MFBWx-0007MR-6D; Fri, 12 Jun 2009 20:31:11 +0200
Received: from v (helo=localhost)
	by hexagon.math-inst.hu with local-esmtp (Exim) id 1MFBWx-0006LI-3x
	from <v@renyi.hu>; Fri, 12 Jun 2009 20:31:11 +0200
Date: Fri, 12 Jun 2009 20:31:11 +0200 (CEST)
From: Babrian Viktor <v@renyi.hu>
X-X-Sender: v@hexagon.math-inst.hu
To: Charles Manning <manningc2@actrix.gen.nz>
In-Reply-To: <200906121554.29842.manningc2@actrix.gen.nz>
Message-ID: <Pine.LNX.4.64.0906122026090.9976@hexagon.math-inst.hu>
References: <Pine.LNX.4.64.0905191151470.25036@hexagon.math-inst.hu>
	<200906091220.31660.manningc2@actrix.gen.nz>
	<Pine.LNX.4.64.0906112329230.2640@hexagon.math-inst.hu>
	<200906121554.29842.manningc2@actrix.gen.nz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-SPF: 
X-SA-Exim-Connect-IP: 193.224.79.10
X-SA-Exim-Mail-From: v@renyi.hu
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=no
	version=3.2.5
X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:14:11 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Cc: yaffs@lists.aleph1.co.uk
Subject: Re: [Yaffs] power cycle during rm
X-BeenThere: yaffs@lists.aleph1.co.uk
X-Mailman-Version: 2.1.11
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: Fri, 12 Jun 2009 18:31:22 -0000

> Although it was definitely a bug (ie. unintended code flow), I would have
> expected this to be benign because a file is resized to zero before it is
> deleted, meaning that there should not be any chunks to be soft deleted.

As far as I remember, the task that takes the time during file removal is 
resizing to zero. The unclean reset always occurs during resizing. 
Deletion takes no time basicly.

Maybe that helps.

>
> I'm still going to investigate a bit further because I'm still scratching my
> head a bit here as to why that should happen on yaffs2 partitions.

BR,
Viktor


