public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Jörn Engel" <joern@logfs.org>
To: Jamie Lokier <jamie@shareable.org>
Cc: linux-mtd@lists.infradead.org, "Jörn Engel" <joern@logfs.org>,
	"Jeff S" <jsolman33@yahoo.com>, "Josh Boyer" <jwboyer@gmail.com>
Subject: Re: JFFS2 determine writing state
Date: Wed, 16 Jan 2008 00:26:13 +0100	[thread overview]
Message-ID: <20080115232613.GA25000@lazybastard.org> (raw)
In-Reply-To: <20080115215144.GA29037@shareable.org>

On Tue, 15 January 2008 21:51:44 +0000, Jamie Lokier wrote:
> Jörn Engel wrote:
> > 
> > I don't think there is a really good equivalent.  Writes happen
> > immediatly, but the changes may not become effective immediatly.  In a
> > way, the worst of both worlds. :)
> 
> I'm not sure if I understand what you mean by that.  Let me guess:
> 
> Do you mean that MTD write operations are started by write(), but
> write() returns before the writes are committed reliably?

Yes.  Write() may return before or after reliable commit, depending on
hardware, config options and sheer luck.

> If so does fsync/fdatasync/sync_page_range ensure that the preceding
> writes are committed reliably?

Yes.

> And does that include fsync on a
> directory following an atomic rename (for reliable replacement of a
> file)?

Yes.

> I guess write caching is an interesting beast for such a structured
> filesystem.  It would seem like a good opportunity to coalesce some
> tree node updates, something applications can't do themselves.

That bit is actually done already, modulo some bugs.  Once those bugs
are sorted out, caching actual data is a straight-forward extention.

Jörn

-- 
The wise man seeks everything in himself; the ignorant man tries to get
everything from somebody else.
-- unknown

      reply	other threads:[~2008-01-15 23:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-10 23:38 JFFS2 determine writing state Jeff S
2008-01-11 13:57 ` Josh Boyer
2008-01-12 10:03   ` Jamie Lokier
2008-01-12 20:15     ` Josh Boyer
2008-01-15 14:08       ` Jamie Lokier
2008-01-15 16:50         ` Jörn Engel
2008-01-15 17:35           ` Jamie Lokier
2008-01-15 19:16             ` Jörn Engel
2008-01-15 21:51               ` Jamie Lokier
2008-01-15 23:26                 ` 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=20080115232613.GA25000@lazybastard.org \
    --to=joern@logfs.org \
    --cc=jamie@shareable.org \
    --cc=jsolman33@yahoo.com \
    --cc=jwboyer@gmail.com \
    --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