From: Bernd Schubert <bschubert@ddn.com>
To: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Bernd Schubert <bs_lists@aakef.fastmail.fm>,
"linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>
Subject: Re: [PATCH] make ext4_valid_block_bitmap() more verbose
Date: Mon, 15 Nov 2010 20:15:59 +0100 [thread overview]
Message-ID: <4CE186EF.2090508@ddn.com> (raw)
In-Reply-To: <E2A9104D-764C-42AD-B479-51333960AF19@dilger.ca>
[-- Attachment #1: Type: text/plain, Size: 1455 bytes --]
On 11/13/2010 12:56 AM, Andreas Dilger wrote:
> On 2010-11-12, at 16:26, Bernd Schubert wrote:
>> The real issue we want to debug with the patch below actually came
>> up while stress testing Lustre using the RHEL5.5 kernel (so
>> 2.6.32'ish ext4), but a more verbose error function should not hurt
>> for vanilla ext4 either.
>>
>> make ext4_valid_block_bitmap() more verbose
>>
>> While running our stress test suite, ext4_valid_block_bitmap()
>> frequently complains about an invalid block bitmap. However, e2fsck
>> does not find anything. So in oder to be able to better debug this
>> issue, make the function more verbose and let it complain about the
>> two possible invalid bitmaps.
>
> Bernd, thanks for sending this in. I like the idea of making these
> messages more verbose, since they should rarely be hit and when they
> are it would be good to know why these checks failed.
Andreas, thanks for your helpful review, I will send an updated patch on
Wednesday.
>> + if (!valid) + ext4_error(sb, "Invalid block bitmap - block_group
>> = %d", + block_group);
>
> It would probably be worthwhile to also print the block number of the
> bitmap itself.
I guess you mean bitmap_blk here? But that changes for every of the
possible checks, so I already printed it above. Is it worth to print it
again? And what if more than one problem is found, might become a bit
confusing then?
Thanks,
Bernd
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
next prev parent reply other threads:[~2010-11-15 19:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-12 23:26 [PATCH] make ext4_valid_block_bitmap() more verbose Bernd Schubert
2010-11-12 23:56 ` Andreas Dilger
2010-11-15 19:15 ` Bernd Schubert [this message]
2010-11-15 16:21 ` Eric Sandeen
2010-11-15 19:22 ` Bernd Schubert
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=4CE186EF.2090508@ddn.com \
--to=bschubert@ddn.com \
--cc=adilger.kernel@dilger.ca \
--cc=bs_lists@aakef.fastmail.fm \
--cc=linux-ext4@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 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.