[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200903311452.05210.info@gnebu.es>
Date: Tue, 31 Mar 2009 14:52:05 +0200
From: Alberto Gonzalez <info@...bu.es>
To: Theodore Tso <tytso@....edu>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Ext4 and the "30 second window of death"
On Tuesday 31 March 2009 14:25:40 Theodore Tso wrote:
> On Sun, Mar 29, 2009 at 12:24:21PM +0200, Alberto Gonzalez wrote:
> > Hi,
> >
> > - I use Ext4 as my filesystem (default in next Fedora release).
>
> Fedora will have the patches so that applications that do
> replace-via-truncate (a bad idea, these applications are buggy, and
> will lose data sometimes even with ext3), or replace-via-rename
> without the fsync(), will force the blocks out to disk with the
> commit.
>
> > - Let's say I've been working on my book for the last 14 months and I've
> > written about 400 pages on an ODF file.
>
> Openoffice, being a portable application, that has to work on other
> operating systems and filesystems (for example, like Solaris's UFS),
> does do open/write/close/fsync/rename. So you're safe if you're using
> OpenOffice (and emacs, and vim).
Ah, good to know, that's quite a relief for normal users like me who were
getting lost with this discussion. But one other doubt:
You've proposed that in laptop mode, fsync's should be held until next write
cycle (say every 30 seconds) so that the disk is not spun up unnecessarily,
wasting battery and shortening it's lifespan too. I absolutely agree with
this, and as a trade-off I'm ok with losing my last paragraph even if I did hit
Ctrl+S to save it a few seconds before a crash. But again, with Ext4 will I
just lose that last paragraph or the whole book in this case?
Thanks,
Alberto.
> Best regards,
>
> - Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists