lkml.org 
[lkml]   [2009]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Ext4 and the "30 second window of death"
Date
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



\
 
 \ /
  Last update: 2009-03-31 14:55    [W:0.098 / U:0.864 seconds]
©2003-2014 Jasper Spaans. Advertise on this site