From manningc2@actrix.gen.nz Fri Jun 19 03:54:32 2009
Received: from smtp.firstline.co.nz ([203.167.210.162] helo=firstline.co.nz)
	by stoneboat.aleph1.co.uk with smtp (Exim 4.69)
	(envelope-from <manningc2@actrix.gen.nz>) id 1MHUFD-00049Q-Bf
	for yaffs@lists.aleph1.co.uk; Fri, 19 Jun 2009 03:54:32 +0100
Received: (qmail 10473 invoked by uid 453); 19 Jun 2009 02:54:09 -0000
X-Virus-Checked: Checked by ClamAV on firstline.co.nz
Received: from Unknown (HELO linux-dual-head.local) (10.14.210.25)
	by firstline.co.nz (qpsmtpd/0.40) with ESMTP;
	Fri, 19 Jun 2009 14:54:09 +1200
From: Charles Manning <manningc2@actrix.gen.nz>
To: yaffs@lists.aleph1.co.uk,
 "=?gb2312?q?=D1=EE=B1=EA?=(Vinge)" <ven.vinge@gmail.com>
Date: Fri, 19 Jun 2009 14:54:08 +1200
User-Agent: KMail/1.9.10
References: <4a23725b.1b018e0a.286a.302b@mx.google.com>
In-Reply-To: <4a23725b.1b018e0a.286a.302b@mx.google.com>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Message-Id: <200906191454.08294.manningc2@actrix.gen.nz>
X-SA-Exim-Connect-IP: 203.167.210.162
X-SA-Exim-Mail-From: manningc2@actrix.gen.nz
X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on
	stoneboat.aleph1.co.uk
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_05,
	MIME_CHARSET_FARAWAY,SPF_NEUTRAL 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)
Subject: Re: [Yaffs] Is there a method sync cache to disk
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, 19 Jun 2009 02:54:33 -0000

Hello

Sorry about taking long to answer this. Unfortunately this ended up in my s=
pam=20
folder.


On Monday 01 June 2009 18:16:37 =D1=EE=B1=EA(Vinge) wrote:
> Hi all:
> 	I just port yaff2 to ucos in direct mode with a 2k page 512m nand flash.
> But as user of my device like to just shutdown the power. yaffs2 file
> system is most likey not been unmount!

> Is there a method to sync cache to=20
> nand? Or how can I just provent lost the cache data to be lost in powerof=
f?
> Should I close the file every time after write to it?

If you close a file then it will be fully flushed to flash.
yaffs_flush() will also flush the file without closing it.

> Or event unmount and remount the dev?

You do not need to do that.

=2D- Charles




