From: Esben Nielsen <esn@cotas.dk>
To: "Holger Schurig" <h.schurig@mn-logistik.de>,
<linux-mtd@lists.infradead.org>
Subject: Re: Database on JFFS2?
Date: Tue, 15 Apr 2003 17:06:36 +0200 [thread overview]
Message-ID: <200304151706.36445.esn@cotas.dk> (raw)
In-Reply-To: <200304151051.34585.h.schurig@mn-logistik.de>
Yes, but are those writes syncronices with actual flash writes such I am sure
that a write is _physically_ complete when fsync() returns?
They certainly ought to be or many applications would get in trouble with
corrupt data at a sudden reboot.
Let us assume it is so. Then I need to tweak sqlite to only force an fsync()
when the JFFS2 layer is ready to commit anyway to avoid too many writes.
Any idea of how to do that?
Esben
On Tuesday 15 April 2003 10:51, Holger Schurig wrote:
> > into that now. It has a log system. The most optimal would be if the
> > database could be tuned not to write too often and on other hand when it
> > does it is flush to flash immediately to prevent datacorruption.
>
> That is simple to find out. sqllite is so small, you surely could add some
> printf() statements at the right place to find out when it writes date.
>
> Hey, even "strace -efile" may help you. "man strace" is your friend.
>
>
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2003-04-15 15:07 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-14 8:08 Database on JFFS2? Esben Nielsen
2003-04-14 23:03 ` Charles Manning
2003-04-15 8:06 ` Esben Nielsen
2003-04-15 8:51 ` Holger Schurig
2003-04-15 15:06 ` Esben Nielsen [this message]
2003-04-15 15:39 ` Jörn Engel
2003-04-15 16:11 ` Jasmine Strong
2003-04-15 16:14 ` Jörn Engel
2003-04-15 16:23 ` Jasmine Strong
2003-04-16 11:16 ` Jörn Engel
2003-04-15 9:13 ` Jörn Engel
[not found] <20030415171123.GH7721@wohnheim.fh-wedel.de>
2003-04-16 10:04 ` Esben Nielsen
2003-04-16 11:35 ` Thomas Gleixner
2003-04-16 11:13 ` Jörn Engel
2003-04-16 14:05 ` Thomas Gleixner
2003-04-16 13:08 ` Jörn Engel
2003-04-16 14:30 ` matsunaga
2003-04-16 18:19 ` Thomas Gleixner
2003-04-17 16:02 ` matsunaga
2003-04-22 8:07 ` Esben Nielsen
2003-04-22 8:24 ` Jörn Engel
[not found] <00512BA4F9D3D311912A009027E9B8F407E4D9@NT>
2003-04-16 15:23 ` Jörn Engel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200304151706.36445.esn@cotas.dk \
--to=esn@cotas.dk \
--cc=h.schurig@mn-logistik.de \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox