From: "Matthias Urlichs" <smurf@noris.de>
To: Oleg Drokin <green@namesys.com>
Cc: reiserfs-list@namesys.com
Subject: Re: fsck mode halfway between --fix-fixable and --rebuild-tree ?
Date: Mon, 30 Sep 2002 15:08:54 +0200 [thread overview]
Message-ID: <20020930150854.Z32363@noris.de> (raw)
In-Reply-To: <20020930152204.A26742@namesys.com>; from green@namesys.com on Mon, Sep 30, 2002 at 03:22:04PM +0400
Hi,
Oleg Drokin:
> > When I tried this, reiserfsck with -S scanned the whole disk, as expected.
> > Reiserfsck without -S said it would scan roughly half of my disk. That led
>
> Yes. It scans all the blocks that are marked as "used" in bitmap.
>
That's not what I meant when I proposed this new option. The method
which I proposed would walk the existing tree, both "downwards" and
"sideways", to find all reachable blocks with nodes, and then do the
existing rebuild-tree algorithm on the result.
> > me to conclude that whatever it does, it doesn't just use the blocks which
> > are actually used for the tree at the moment.
>
> How can it know? It must find all the lost blocks too.
>
... and how can it know that the bitmap represents reality?
Blocks have three pointers which point to them (left neighbour, right
neighbour, and parent). (That's my understanding of the way people
usually lay out their B-trees, anyway; apologies if yours is radically
different.) I'd like to assume that blocks don't easily get lost when
there are so many ways to find them. Three pointers look safer than a
single bit, anyway.
This method would be a nice compromise between not fixing a problem,
depending on suspect information, and/or reconnecting every file which
I've deleted during the last year.
--
Matthias Urlichs | noris network AG | http://smurf.noris.de/
next prev parent reply other threads:[~2002-09-30 13:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-28 9:28 Reiserfs/emacs incompatibility/bug ? arthur.chereau
2002-09-29 15:23 ` fsck mode halfway between --fix-fixable and --rebuild-tree ? Matthias Urlichs
2002-09-30 6:18 ` Oleg Drokin
2002-09-30 11:12 ` Hans Reiser
2002-09-30 11:15 ` Oleg Drokin
2002-09-30 11:17 ` Matthias Urlichs
2002-09-30 11:22 ` Oleg Drokin
2002-09-30 13:08 ` Matthias Urlichs [this message]
2002-09-30 13:20 ` Hans Reiser
2002-09-30 17:36 ` Matthias Urlichs
2002-09-30 17:56 ` Valdis.Kletnieks
2002-10-01 6:37 ` Nikita Danilov
2002-10-01 7:32 ` Matthias Urlichs
2002-10-01 7:44 ` Nikita Danilov
2002-10-01 11:02 ` Hans Reiser
2002-10-01 11:00 ` Hans Reiser
2002-10-01 11:12 ` Nikita Danilov
2002-10-01 12:15 ` Matthias Urlichs
2002-10-01 18:43 ` Hans Reiser
2002-10-02 8:13 ` Matthias Urlichs
2002-10-02 11:04 ` Vitaly Fertman
2002-10-02 12:21 ` Matthias Urlichs
2002-09-30 15:15 ` Vitaly Fertman
2002-09-30 11:43 ` Vitaly Fertman
2002-09-29 23:54 ` Reiserfs/emacs incompatibility/bug ? Matthias Andree
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=20020930150854.Z32363@noris.de \
--to=smurf@noris.de \
--cc=green@namesys.com \
--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.