From: "Timothy A. Seufert" <tas@mindspring.com>
To: linux-kernel@vger.kernel.org
Subject: Re: How errorproof is ext2 fs?
Date: Fri, 14 Sep 2001 23:39:22 -0700 [thread overview]
Message-ID: <p05100301b7c8a0bb9015@[10.0.0.42]> (raw)
Otto Wyss <otto.wyss@bluewin.ch> wrote:
>At least ext2 and probably all the journalling fs lacks a feature the HFS+
>from the Mac has (bad tongues might say "needs"), to keep open files
>without activity in a state where a crash has no effect. I don't know how
>it is done since I'm no fs expert but my experience with my Mac (resetting
>about once a month without loosing anything) shows that it's possible.
HFS+ (the file system, as opposed to implementations of it) has no
such feature.
In fact, HFS+ is probably more vulnerable to file system damage than
a FS like ext2, simply because it uses a B-Tree structure. B-Trees
have their purposes (such as searching the whole FS for a file
quickly, a capability very important to classic MacOS), but are
generally not as robust as a simple inode FS like ext2.
The only thing which prevents damage from being common on MacOS 9 is
the slow and unsophisticated MacOS 9 *implementation* of HFS+. I'm
pretty sure it is synchronous and single-threaded. And the MacOS
cache doesn't keep dirty buffers for any significant amount of time
(no more than ~0.5s I think). These things mean that at any given
point in time, the state of the HFS+ metadata on disk is probably
coherent or close to it.
As others have mentioned -- if you want FS crash resistance somewhat
more like MacOS 9, mount your ext2 filesystems sync. Be prepared for
a huge performance loss. But the correct thing to do is to figure
out why Linux is crashing and fix it -- Linux can and should stay up
for months or years.
Also, under Darwin (aka the MacOS X BSD layer), the likelihood of
damage to a HFS+ volume after a crash/reboot is significantly higher.
Darwin has a high performance async HFS+ implementation with a real
buffer cache behind it.
--
Tim Seufert
next reply other threads:[~2001-09-15 6:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-15 6:39 Timothy A. Seufert [this message]
[not found] <Pine.LNX.4.10.10109140953100.24181-100000@coffee.psychology.mcmaster.ca>
2001-09-14 20:47 ` Otto Wyss
2001-09-14 21:38 ` Andreas Dilger
-- strict thread matches above, loose matches on Subject: below --
2001-09-14 13:09 Jesse Pollard
2001-09-13 21:30 Otto Wyss
2001-09-13 21:53 ` Joel Jaeggli
2001-09-13 22:05 ` Alan Cox
2001-09-14 19:16 ` Otto Wyss
2001-09-14 20:39 ` Mike Fedyk
2001-09-16 8:58 ` Rogier Wolff
2001-09-16 10:00 ` Frank Schneider
2001-09-16 10:14 ` Luigi Genoni
[not found] ` <3BA1E670.9010300@foogod.com>
2001-09-14 20:37 ` Otto Wyss
2001-09-14 23:09 ` Alan Cox
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='p05100301b7c8a0bb9015@[10.0.0.42]' \
--to=tas@mindspring.com \
--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®