From glfy-yaffs@m.gmane.org Tue Apr 08 12:15:33 2008
Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org)
	by stoneboat.aleph1.co.uk with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
	(Exim 4.63) (envelope-from <glfy-yaffs@m.gmane.org>)
	id 1JjBnR-0002Av-9R
	for yaffs@stoneboat.aleph1.co.uk; Tue, 08 Apr 2008 12:15:33 +0100
Received: from list by ciao.gmane.org with local (Exim 4.43)
	id 1JjBnP-0007nq-TA
	for yaffs@stoneboat.aleph1.co.uk; Tue, 08 Apr 2008 11:15:24 +0000
Received: from 40.107.210.62.te-dns.org ([62.210.107.40])
	by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
	id 1AlnuQ-0007hv-00
	for <yaffs@stoneboat.aleph1.co.uk>; Tue, 08 Apr 2008 11:15:23 +0000
Received: from matthieu.castet by 40.107.210.62.te-dns.org with local (Gmexim
	0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <yaffs@stoneboat.aleph1.co.uk>; Tue, 08 Apr 2008 11:15:23 +0000
X-Injected-Via-Gmane: http://gmane.org/
To: yaffs@stoneboat.aleph1.co.uk
From: Matthieu CASTET <matthieu.castet@parrot.com>
Date: Tue, 8 Apr 2008 11:15:16 +0000 (UTC)
Lines: 13
Message-ID: <loom.20080408T111140-572@post.gmane.org>
References: <loom.20080408T092042-911@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: main.gmane.org
User-Agent: Loom/3.14 (http://gmane.org/)
X-Loom-IP: 62.210.107.40 (Mozilla/5.0 (X11; U; Linux i686; fr;
	rv:1.8.1.13) Gecko/20080311 Iceweasel/2.0.0.13 (Debian-2.0.0.13-1))
Sender: news <news@ger.gmane.org>
X-SA-Exim-Connect-IP: 80.91.229.2
X-SA-Exim-Mail-From: glfy-yaffs@m.gmane.org
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,
	RCVD_IN_DNSWL_LOW, RCVD_NUMERIC_HELO, SPF_HELO_PASS,
	SPF_PASS autolearn=no version=3.2.3
X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000)
X-SA-Exim-Scanned: Yes (on stoneboat.aleph1.co.uk)
Subject: Re: [Yaffs] loopback , power-off, and data is lost
X-BeenThere: yaffs@lists.aleph1.co.uk
X-Mailman-Version: 2.1.9
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/listinfo/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: Tue, 08 Apr 2008 11:15:33 -0000

After adding OS trace to yaffs2, I saw that sync does a call to yaffs_sync_fs,
but  it is a nop.

This mean sync syscall doesn't flush the yaffs2 cache and data it lost on
unclean umount.


Calling yaffs_FlushEntireDeviceCache in yaffs_sync_fs seems to make sync working.
What do you think of that ?



Matthieu


