From: "Jörn Engel" <joern@lazybastard.org>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: R&D4 <r&d4@dave-tech.it>, David Woodhouse <dwmw2@infradead.org>,
mtd_mailinglist <linux-mtd@lists.infradead.org>
Subject: Re: JFFS2 as transactional FS (in other words: how to be sure that data have been writtent correctly from userspace)
Date: Thu, 8 Mar 2007 15:43:52 +0100 [thread overview]
Message-ID: <20070308144350.GF23216@lazybastard.org> (raw)
In-Reply-To: <1173364518.4861.14.camel@zod.rchland.ibm.com>
On Thu, 8 March 2007 08:35:17 -0600, Josh Boyer wrote:
> On Thu, 2007-03-08 at 13:58 +0000, David Woodhouse wrote:
> > On Thu, 2007-03-08 at 07:44 -0600, Josh Boyer wrote:
> > > Wait... why? Rejecting mount -o sync seems sane, but why can't O_SYNC
> > > support be handled? If users want to open their files like that and it
> > > causes JFFS2 to flush a bunch of padding out, well they asked for it.
> >
> > Users ask for shared writable mmap too. That isn't a good idea either.
> >
> > Contemplate what Linus always says about using 'volatile' vs. proper
> > barriers. Now consider it for O_SYNC vs. fsync(). And factor in the fact
> > that O_SYNC is going to be massively suboptimal if it causes syncs when
> > they otherwise didn't need to happen.
>
> Ok, good point. You've convinced me.
I can imagine cases when O_SYNC makes sense. Logfiles, basically.
When debugging it is useful to have as much information in them as
possible, especially right before the crash. O_SYNC is a useful
relaxation here on system where fsync() is identical to sync() - O_SYNC
will not flush every other file in the system.
Whether any applications actually do this is anyone's guess, though.
Jörn
--
Write programs that do one thing and do it well. Write programs to work
together. Write programs to handle text streams, because that is a
universal interface.
-- Doug MacIlroy
prev parent reply other threads:[~2007-03-08 14:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-08 9:49 JFFS2 as transactional FS (in other words: how to be sure that data have been writtent correctly from userspace) R&D4
2007-03-08 10:51 ` David Woodhouse
2007-03-08 12:54 ` Jörn Engel
2007-03-08 13:04 ` David Woodhouse
2007-03-08 13:12 ` Jörn Engel
2007-03-08 13:22 ` David Woodhouse
2007-03-08 13:44 ` Josh Boyer
2007-03-08 13:58 ` David Woodhouse
2007-03-08 14:35 ` Josh Boyer
2007-03-08 14:43 ` Jörn Engel [this message]
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=20070308144350.GF23216@lazybastard.org \
--to=joern@lazybastard.org \
--cc=dwmw2@infradead.org \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linux-mtd@lists.infradead.org \
--cc=r&d4@dave-tech.it \
/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