From glfy-yaffs@m.gmane.org Tue Apr 08 12:10:17 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 1JjBiJ-0001vC-54
	for yaffs@stoneboat.aleph1.co.uk; Tue, 08 Apr 2008 12:10:17 +0100
Received: from root by ciao.gmane.org with local (Exim 4.43)
	id 1JjBiF-0007Z4-3W
	for yaffs@stoneboat.aleph1.co.uk; Tue, 08 Apr 2008 11:10:03 +0000
Received: from ASt-Lambert-152-1-63-198.w82-120.abo.wanadoo.fr
	([82.120.198.198]) 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:10:03 +0000
Received: from matthieu.castet by
	ASt-Lambert-152-1-63-198.w82-120.abo.wanadoo.fr with local
	(Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00
	for <yaffs@stoneboat.aleph1.co.uk>; Tue, 08 Apr 2008 11:10:03 +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 09:33:35 +0000 (UTC)
Lines: 27
Message-ID: <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: 82.120.198.198 (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=-3.1 required=5.0 tests=AWL,BAYES_00,
	RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS autolearn=ham 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: [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:10:18 -0000

Hi,

I am using yaffs2 on a 2.6.20.
On the yaffs2 partition we mount a FAT fs with loopback. If we modify files in
the FAT partition, umount it and do a sync. The data is lost after a unclean
unmount.

For example if yaffs2 partition is mount in /mnt and /mnt/media is a file
containing a FAT fs.

# mount /mnt/media /media/fat -o loop
# cp /somefile /media/frame/somefile
# umount /media/frame
# sync
<--- wait 10 seconds
<--- power-off and power-on without umount
# mount /mnt/media /media/fat -o loop
# md5sum /somefile /media/frame/somefile
7fbf15f115bdbe93c3466b595a926b5e  /somefile
6a7cfc972547b2385e97a4af3d854444  /media/frame/somefile


There is no such problem if I write the file in the yaffs2 partition instead of
FAT fs.


Matthieu


