From: Oleg Drokin <green@namesys.com>
To: Sam@Vilain.net
Cc: reiserfs-list@namesys.com, vitaly@namesys.com
Subject: Re: reiserfsck --blame-it-on-the-hardware-yeah-yeah
Date: Sun, 9 Feb 2003 13:01:17 +0300 [thread overview]
Message-ID: <20030209130116.A32206@namesys.com> (raw)
In-Reply-To: <20030208224928.A30012@ns.soreal.co.uk>
Hello!
On Sat, Feb 08, 2003 at 10:49:28PM +0000, Sam@Vilain.net wrote:
> Ah, right, well that explains it. It complained about block 524111,
> which would be physical block number 2096444. This is off the end of
> the block device, which only has 2000061 blocks.
Aha, so this is indeed the problem.
> I acknowledge that I used `hda' where I should have used `hda1' for
> the simple read-test with dd, but did you not see the `badblocks'
> program output in the same e-mail? `badblocks' read in the existing
Yes, I saw it.
> then wrote the original data back. It detected no error anywhere in
> the block device.
That's good, it means your hard drive is probably ok.
> Therefore, your reiserfsck has a bug. The whole point of a fsck is
Well, currently the logic is "If we cannot read some block, that
usually means this is a badblock".
And so it prints the message. Of course more testing about
if the block is beyond partition boundary should be probably added.
> that any data, anywhere, can be corrupted - and reiserfsck should not
> fall over because of it. So, what you should do is carefully go
Sure, unfortunatelly interactive part of reiserfsck is not very mature.
And what do you think it should have done? Shrink the size of FS
to fit changed (may be because of corruption) partition size?
Enlarge the partition? What else?
> through your filesystem data structure, insert garbage in at each
> unique structural location, and run `reiserfsck' on it to see if it
> handles the problem correctly. Then I'd suggest sollowing that up
> with some randomly corrupted filesystems.
Yup, we are running such tests. But thanks for suggestion.
> Looking at the source code, I now see why the --no-journal-available
> switch does not do anything if a `standard' journal is used rather
> than an off-device journal. However, I would suggest that this test
> is superfluous, and the tool has more benefit to the system
> administrator if the test for a `standard' journal with
> fsck_skip_journal is removed, or perhaps replaced with a warning or
> another prompt.
We will think about it. Thanks for the idea.
> I'm going to try removing that test in the 3.x.1b version and see if
> the fsck completes.
Well, 3.x.1b should not be actually used, lots of bugs were fixed since then.
Thanks for the report.
Vitaly: We need a check that journal target block is in range of filesystem.
Please add this test.
Bye,
Oleg
next prev parent reply other threads:[~2003-02-09 10:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-08 0:50 reiserfsck --blame-it-on-the-hardware-yeah-yeah Sam
2003-02-08 10:20 ` Oleg Drokin
[not found] ` <20030208224928.A30012@ns.soreal.co.uk>
2003-02-09 10:01 ` Oleg Drokin [this message]
2003-02-10 16:24 ` Sam Vilain
2003-02-10 13:11 ` Oleg Drokin
2003-02-11 2:53 ` Sam Vilain
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=20030209130116.A32206@namesys.com \
--to=green@namesys.com \
--cc=Sam@Vilain.net \
--cc=reiserfs-list@namesys.com \
--cc=vitaly@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.