mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Albert D. Cahalan" <acahalan@cs.uml.edu>
To: kubla@sciobyte.de (Dominik Kubla)
Cc: acahalan@cs.uml.edu (Albert D. Cahalan),
	alexis@cecm.usp.br (Alexis S. L. Carvalho),
	linux-kernel@vger.kernel.org
Subject: Re: implementing soft-updates
Date: Wed, 10 Apr 2002 14:07:09 -0400 (EDT)	[thread overview]
Message-ID: <200204101807.g3AI79Q46938@saturn.cs.uml.edu> (raw)
In-Reply-To: <20020410092807.GA4015@duron.intern.kubla.de> from "Dominik Kubla" at Apr 10, 2002 11:28:07 AM

Dominik Kubla writes:
> On Tue, Apr 09, 2002 at 08:41:28PM -0400, Albert D. Cahalan wrote:

>> While ext2 fsck doesn't guarantee anything, in practice it is far
>> more reliable than ufs fsck. If you change the algorithms to be
>> like those used by BSD, then you may lose some of the ability to
>> recover. Remember, fsck isn't just for power failures. It tries
>> to piece together a filesystem that has suffered disk corruption
>> caused by attackers, kernel bugs, fdisk screwups, MS-DOS writing
>> past the end of a partition, Windows NT Disk Manager, viruses,
>> disk head crashes, and every other cause you can imagine. If you
>> change fsck to make BSD-style assumptions about write ordering,
>> you weaken the ability to deal with disasters.
>
> I disagree. In fact the current BSD softupdate code guarantees that all
> that ever happens is that freed blocks are not entered into the free
> block list. Something fsck can fix in background on a life system. See
> M. Kirk McKusicks BSDcon 02 paper 'Running fsck in background.'

Two cases:

a. proper shutdown -- somewhat OK to never fsck
b. unclean shutdown -- may involve kernel crashing

So with an unclean filesystem, _any_ avoidance of fsck is
suspect. I have a UPS; when my system boots on an unclean
filesystem it's because XFree86 thought it could run a
hardware driver in userspace.

Journalling gives you a nice list of recently-touched data
structures to examine. The phase-tree algorithm can support
low-cost incremental checksumming of the whole filesystem.
Soft-updates leave you with... well, is prayer any good?
You'd better run fsck at boot, which AFAIK is exactly what
is done; you even say "not include [...] background fsck".

> The fact that the BSD FFS in it's currently released version (which does
> not include snapshot and background fsck capability) is considered to be
> one of the more reliable file systems around, even when softupdates are
> enabled, speaks for itself. So please just as you don't want horror
> stories about Linux ext2 spread: don't do it yourself.

I'm just tired of this: "Back when I used to use Linux 2.1.44 my
disks were trashed so bad that I lost everything! So use BSD."
Last time I checked, BSD fsck didn't have a set of regression tests
like ext2 fsck does. On the BSD mailing lists you can read about
fsck getting signal 11. So it's not God's Glorious Filesystem by
any means.

  reply	other threads:[~2002-04-10 18:07 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-09 21:46 Alexis S. L. Carvalho
2002-04-09 22:17 ` Mike Fedyk
2002-04-09 22:23   ` Dominik Kubla
2002-04-09 23:36     ` Mike Fedyk
2002-04-10  0:41 ` Albert D. Cahalan
2002-04-10  1:58   ` Alexis S. L. Carvalho
2002-04-10  3:46     ` Andreas Dilger
2002-04-10  2:55   ` Andreas Dilger
2002-04-10 11:48     ` Peter Wächtler
2002-04-11 12:45     ` Bill Davidsen
2002-04-10  9:28   ` Dominik Kubla
2002-04-10 18:07     ` Albert D. Cahalan [this message]
2002-04-08 20:34       ` Pavel Machek
2002-04-10 18:13     ` Andreas Dilger
     [not found] <20020409184605.A13621@cecm.usp.br.suse.lists.linux.kernel>
     [not found] ` <200204100041.g3A0fSj00928@saturn.cs.uml.edu.suse.lists.linux.kernel>
     [not found]   ` <20020410092807.GA4015@duron.intern.kubla.de.suse.lists.linux.kernel>
2002-04-10 19:24     ` Andi Kleen
2002-04-08 20:35       ` Pavel Machek
2002-04-15 20:25         ` Andi Kleen
2002-04-15 20:47         ` Andreas Dilger
2002-04-16 10:45         ` Wichert Akkerman
2002-04-16 18:55           ` Mike Fedyk
2002-04-11 16:35 James Bottomley

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=200204101807.g3AI79Q46938@saturn.cs.uml.edu \
    --to=acahalan@cs.uml.edu \
    --cc=alexis@cecm.usp.br \
    --cc=kubla@sciobyte.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®