From: Eric Sandeen <sandeen@redhat.com>
To: Frank Mayhar <fmayhar@google.com>
Cc: Surbhi Palande <surbhi.palande@canonical.com>,
linux-ext4@vger.kernel.org
Subject: Re: [PATCH] replaced BUG() with return -EIO from ext4_ext_get_blocks
Date: Fri, 11 Dec 2009 14:31:50 -0600 [thread overview]
Message-ID: <4B22AC36.5020106@redhat.com> (raw)
In-Reply-To: <1260562923.21896.11.camel@bobble.smo.corp.google.com>
Frank Mayhar wrote:
> On Fri, 2009-12-11 at 14:02 -0600, Eric Sandeen wrote:
>> My first thought was that this was a bandaid too, but I guess it can
>> come about due to on-disk corruption for any reason, so it should
>> be handled gracefully, and I suppose this approach seems fine.
>
> That's why we've been running with it, yes.
now if this is coming about as the result of a programming error, we'd
better sort that out ;) Do you have any reason to believe that the
corruption a hardware or admin issue, vs. an actual bug somewhere?
>> Since this is catching on-disk corruption, though, it'd be better to call
>> ext4_error() and let the mount-time error-handling policy decide what to do.
>>
>> I like having more info but below seems awfully wordy ;) Maybe the first
>> printk would suffice, and switching it to an ext4_error() would be best,
>> I think.
>
> Okay, I'll rework the patch a bit and resubmit it.
Thanks!
The amount of info printed is probably just a judgement call; for a developer,
printing out the inode & iblock is enough 'cause we can then just go use
debugfs & look at it. For a bug report, perhaps more info would be useful
because that one set of printks may be all we'll get ... up to you.
Maybe we should think about a generic "print corrupted inode information"
infrastructure that could be reused ...
Thanks,
-Eric
next prev parent reply other threads:[~2009-12-11 20:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-11 14:06 [PATCH] replaced BUG() with return -EIO from ext4_ext_get_blocks Surbhi Palande
2009-12-11 18:07 ` Frank Mayhar
2009-12-11 20:02 ` Eric Sandeen
2009-12-11 20:22 ` Frank Mayhar
2009-12-11 20:31 ` Eric Sandeen [this message]
2009-12-11 21:11 ` Frank Mayhar
2009-12-11 22:11 ` Surbhi Palande
2009-12-11 22:16 ` Frank Mayhar
2009-12-12 21:00 ` [PATCH v2] " Surbhi Palande
2009-12-14 15:04 ` tytso
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=4B22AC36.5020106@redhat.com \
--to=sandeen@redhat.com \
--cc=fmayhar@google.com \
--cc=linux-ext4@vger.kernel.org \
--cc=surbhi.palande@canonical.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).