From: Hans Reiser <reiser@namesys.com>
To: Matthias Urlichs <smurf@noris.de>
Cc: Oleg Drokin <green@namesys.com>, reiserfs-list@namesys.com
Subject: Re: fsck mode halfway between --fix-fixable and --rebuild-tree ?
Date: Mon, 30 Sep 2002 17:20:18 +0400 [thread overview]
Message-ID: <3D984F92.4010509@namesys.com> (raw)
In-Reply-To: 20020930150854.Z32363@noris.de
Matthias Urlichs wrote:
>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.)
>
Is this the way they do it on disk? We just have a link from parent to
child. Maintaining on disk links to siblings would hurt performance as
the links would require updating.
> 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.
>
>
>
next prev parent reply other threads:[~2002-09-30 13:20 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
2002-09-30 13:20 ` Hans Reiser [this message]
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=3D984F92.4010509@namesys.com \
--to=reiser@namesys.com \
--cc=green@namesys.com \
--cc=reiserfs-list@namesys.com \
--cc=smurf@noris.de \
/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.