From: Kuba Ober <kuba@mareimbrium.org>
To: reiserfs-list@namesys.com
Subject: Re: A couple of questions
Date: Fri, 17 May 2002 11:35:57 -0400 [thread overview]
Message-ID: <200205171135.57105.kuba@mareimbrium.org> (raw)
In-Reply-To: <200205171310.g4HDAgmD005059@turing-police.cc.vt.edu>
> > Why on earth does a filesystem check & recovery program need to ask
> > questions to the user, which most users w/o intimate filesystem knowledge
> > won't be able to answer at all? Looking at this list, what people want is
> > to get their data back, as much as possible. They never want to get less
> > than that. Why bother asking?
>
> Well.. at least "traditionally", it was possible for a filesystem to get
> scrozzled in ways that just saying 'y' would result in more data loss than
> one judicious 'n' at the wrong time. There's been more than once in the
> last two decades that I've had fsck dropping zillions of files into
> lost+found/ because it decided that they were in invalid directories.
>
> Why were those directories invalid? Because their .. pointers were broken.
>
> What was wrong with their .. pointers? They pointed at a directory that
> had a bum .. as well...
>
> End result? If you answered 'n' to all the "relink?" questions *except*
> for the one actual broken one, you ended up with an almost-intact directory
> tree in lost+found, and a simple 'mv #004 ../real_name' would finish it,
> rather than 3 zillion #nnnn entries with no directory structure at all.
That's an fsck problem. Fsck has enough data to make sure that directories are
really correct. That particular fsck you're mentioning didn't do its job,
that's all.
As far as the pointers are concerned, what kinds of directory pointers you're
referring to? Pointers from lower-level directories that didn't point to the
directory in question, pointers from broken lower-level dirs that point to
directory in question, pointers from that directory entry to some other
broken directory?
Please explain the pointer thing and say explicitly what points to what and
why they were broken. I'd really like to know, as I'm putting down an
idea-list if I'd ever feel like making a useable disk-editor thingo that
would support different linux fsms.
> The ugliest one of these was on a system where fsck refused to grow
> lost+found (because doing so would require more blocks - which are hard to
> get if you can't trust the free list at the moment - that's why old mkfs
> commands would have a loop that touched a bunch of files in lost+found and
> then rm them - just to grow the directory size).
>
> So quite often, you'd end up doing an 'fsck -n' once to figure out what was
> scrogged, then re-run it several times, answering 'y' to things in the
> right order...
Again, that looks like fsck was broken and not doing its job. Please say what
kind of info the fsck was providing to you with fsck -n, and how did you use
that info to answer 'y' in the right order. I assume that:
1. the fsck will be able to answer most of these questions if it had code to
do it,
2. the only leftover questions would be those that would have to be asked
anyway -- if we'll make users not answer questions when they don't need to,
they will learn to answer the important ones.
Please tell me which one of these would you rather see?
- "invalid block counts in groups (blah, lists inodes in groups), fix them?"
- "inode x had zero dtime, fixed"
- or "your fs seems to have suffered corruption that's typical to shutting
down an fs without properly unmounting it first, corrected."
(that's somewhat generalizing, and based on e2fs)
Cheers, Kuba
next prev parent reply other threads:[~2002-05-17 15:35 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-16 18:44 A couple of questions Steve Pratt
2002-05-16 18:55 ` Oleg Drokin
2002-05-16 20:33 ` Hans Reiser
2002-05-16 21:23 ` Kuba Ober
2002-05-16 21:44 ` Lehmann
2002-05-16 23:57 ` Hans Reiser
2002-05-17 0:45 ` Philipp Gühring
2002-05-17 1:06 ` Manuel Krause
2002-05-17 15:21 ` Kuba Ober
2002-05-17 0:17 ` Manuel Krause
2002-05-17 15:04 ` Kuba Ober
2002-05-18 20:40 ` Hans Reiser
2002-05-17 15:05 ` Kuba Ober
2002-05-16 21:44 ` Lehmann
2002-05-17 13:10 ` Valdis.Kletnieks
2002-05-17 15:35 ` Kuba Ober [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-05-27 13:39 Paul Millar
2010-05-27 14:56 ` Hubert Kario
2010-05-31 17:59 ` Paul Millar
2010-06-02 16:19 ` Hubert Kario
2010-05-27 16:00 ` Chris Mason
2010-05-31 18:06 ` Paul Millar
2010-05-31 20:33 ` Mike Fedyk
2010-06-02 11:56 ` Paul Millar
2010-06-01 13:39 ` Martin K. Petersen
2010-06-02 13:40 ` Paul Millar
2010-06-04 1:17 ` Martin K. Petersen
2005-04-18 11:51 Imre Simon
2005-04-18 15:31 ` Linus Torvalds
2005-04-18 16:23 ` Paul Jackson
2002-05-17 15:27 Steve Pratt
2002-05-17 13:11 berthiaume_wayne
2002-05-17 16:03 ` Kuba Ober
2002-05-16 18:48 Steve Pratt
2002-05-16 15:11 Steve Pratt
2002-05-16 15:35 ` Oleg Drokin
2002-05-16 14:52 Steve Pratt
2002-05-16 15:13 ` Hans Reiser
2002-05-15 21:22 Steve Pratt
2002-05-16 5:20 ` Oleg Drokin
2002-05-16 9:42 ` Hans Reiser
2002-05-16 11:40 ` Oleg Drokin
2002-05-16 11:54 ` Hans Reiser
2001-10-10 11:28 Adil EL YOUSSEFI
2001-10-10 12:11 ` David Woodhouse
1999-03-02 13:11 Neil Booth
1999-03-15 18:58 ` Stephen C. Tweedie
1999-03-15 22:46 ` neil
1999-03-16 12:22 ` Stephen C. Tweedie
1999-03-16 2:11 ` Andrea Arcangeli
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=200205171135.57105.kuba@mareimbrium.org \
--to=kuba@mareimbrium.org \
--cc=reiserfs-list@namesys.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.