public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: David Woodhouse <dwmw2@infradead.org>
Cc: "Jörn Engel" <joern@logfs.org>,
	linux-mtd@lists.infradead.org, "Josh Boyer" <jwboyer@gmail.com>,
	Duke <ezbonites@gmail.com>
Subject: Re: jffs2: too few erase blocks
Date: Mon, 29 Oct 2007 22:50:29 +0000	[thread overview]
Message-ID: <20071029225029.GB7122@mail.shareable.org> (raw)
In-Reply-To: <1193694040.2915.123.camel@shinybook.infradead.org>

David Woodhouse wrote:
> On Mon, 2007-10-29 at 20:51 +0000, Jamie Lokier wrote:
> > When you say "sync", do fdatasync() / fsync() on open files and
> > directories flush the necessary blocks from wbuf for those
> > files/directories data and their inode metadata, for JFFS2?
> > 
> > I have been calling sync(), but I wonder if fdatasync/fsync do as they
> > are supposed to?
> 
> They certainly should; if you find otherwise, please tell me.

So far, with JFFS2 on cfi_cmdset_0002 NOR flash, on a Linux 2.4.26-uc0
kernel, I haven't seen any data failed to be committed after sync()
returns.

As JFFS2 is synchronous with this type of flash we shouldn't
be surprised, and that makes fsync/fdatasync nops.

If I ever do use another type of flash with JFFS2 (or any of the other
flash fses) then I'll be sure to report any problems with
fsync/fdatasync not committing data.  See also my earlier message on
what you might add to a test suite for these fses, to check
fsync/fdatasync implementation much better than random application
usage and system crashes can possibly do.

Thanks,
 -- Jamie

  reply	other threads:[~2007-10-29 22:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-25 14:06 jffs2: too few erase blocks Duke
2007-10-25 14:22 ` Josh Boyer
2007-10-25 22:15   ` Jamie Lokier
2007-10-26 17:00     ` Duke
2007-10-26 21:02       ` Duke
2007-10-28 18:02         ` Jamie Lokier
2007-10-29  2:59           ` David Woodhouse
2007-10-29 14:38             ` Jörn Engel
2007-10-29 20:51               ` Jamie Lokier
2007-10-29 21:40                 ` David Woodhouse
2007-10-29 22:50                   ` Jamie Lokier [this message]
2007-10-29 21:54                 ` Jörn Engel
2007-10-29 22:46                   ` Jamie Lokier
2007-10-30 16:09                     ` Jörn Engel
2007-10-30 20:08                       ` Duke
2007-10-30 20:19                         ` Jörn Engel
2007-10-30 21:42                           ` Duke

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=20071029225029.GB7122@mail.shareable.org \
    --to=jamie@shareable.org \
    --cc=dwmw2@infradead.org \
    --cc=ezbonites@gmail.com \
    --cc=joern@logfs.org \
    --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