public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Theodore Tso <tytso@mit.edu>
To: Clemens Eisserer <linuxhippy@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Howto switch off ext4's delayed allocation?
Date: Wed, 16 Sep 2009 12:38:22 -0400	[thread overview]
Message-ID: <20090916163822.GA15451@mit.edu> (raw)
In-Reply-To: <194f62550909160532q248cb45coee639a2da10292a@mail.gmail.com>

On Wed, Sep 16, 2009 at 08:32:12AM -0400, Clemens Eisserer wrote:
> 
> Just happend again to me.
> After the intel driver crashed my system, the source-file I was
> working on was empty. Fourtunatly eclipse has a history-log.

Sounds like eclipse is broken; most Unix editors (emacs, vim, etc.) do
correctly use fsync() when writing precious files, such people's
source files.  In addition, it must be writing the data through a
decidedly non-standard way.  Is it out-and-out deleting the file
before writing the new version of the file, or something insane like
that?  Ext4's hueristics are designed so that for the most common ways
that applications update files, the data gets forced to disk.  It
sounds like Eclipse is doing something decidedly non-standard.

If you can run a strace on eclipse while and then arrange to edit an
existing file and save it, it would be interesting to see what the
heck it is doing.

> Isn't there a way to switch off the more "dangerous" optimizations in ext4?

The mount option nodelalloc will turn off delayed allocation.  This is
documented in Documentation/filesystems/ext4.txt.

					- Ted

  reply	other threads:[~2009-09-16 16:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09 11:03 Howto switch off ext4's delayed allocation? Clemens Eisserer
2009-09-16 12:32 ` Clemens Eisserer
2009-09-16 16:38   ` Theodore Tso [this message]
2009-09-16 18:41     ` Clemens Eisserer
2009-09-17 13:34       ` Theodore Tso
2009-09-17 18:37         ` Clemens Eisserer
  -- strict thread matches above, loose matches on Subject: below --
2009-09-16 13:29 Tomasz Chmielewski

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=20090916163822.GA15451@mit.edu \
    --to=tytso@mit.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxhippy@gmail.com \
    /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