Database on JFFS2?

matsunaga matsunaga_kazuhisa at yahoo.co.jp
Thu Apr 17 12:02:57 EDT 2003


----- Original Message -----
From: "Thomas Gleixner" <tglx at linutronix.de>
To: "matsunaga" <matsunaga_kazuhisa at yahoo.co.jp>; "Jörn Engel" <joern at wohnheim.fh-wedel.de>
Cc: <linux-mtd at lists.infradead.org>; "Holger Schurig" <h.schurig at mn-logistik.de>; <esn at cotas.dk>; "Jasmine Strong"
<jasmine at regolith.co.uk>
Sent: Thursday, April 17, 2003 3:19 AM
Subject: Re: Database on JFFS2?


> On Wednesday 16 April 2003 16:30, matsunaga wrote:
> > > iirc it used to ignore sync completely so people could potentially get
> > > into trouble if they write-sync-poweroff with <2s between write and
> > > poweroff.
> >
> > write - sync -poweroff works on NAND. flush_wbuf is also triggered on
> > umount.
> >
> > I think that sys_sync is not supported yet, as is written in jffs2/Todo,
> > right?
>
> Sorry, I mixed this up with fsync. sys_sync is not working, just flushing the
> buffer on umount.
>
> When I brought in the timed flush, I tried to use kupdated
> (superblock->s_dirty) and had a bunch of unwanted flush's during consecutive
> writes, because setting sb->s_dirty is asynchronous to kupdated interval.
> That's why I used the 2 seconds timer.
>
> I will think about it again.

I understand the sisuation. Asynchronous sync could prevents consecutive writes.
I will wait for it ;-)
Ideally sys_sync while a file is being written should wait for the last wbuf write of the file and flush it...

BR.

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!  http://bb.yahoo.co.jp/




More information about the linux-mtd mailing list