From: Theodore Tso <tytso@mit.edu>
To: Andreas Dilger <adilger@sun.com>
Cc: linux-ext4@vger.kernel.org, Girish.Shilamkar@sun.com
Subject: Re: [PATCH] jbd2: If a journal checksum error is detected, propagate the error to ext4
Date: Thu, 5 Jun 2008 12:21:17 -0400 [thread overview]
Message-ID: <20080605162117.GD25477@mit.edu> (raw)
In-Reply-To: <20080605031712.GK2961@webber.adilger.int>
On Wed, Jun 04, 2008 at 09:17:12PM -0600, Andreas Dilger wrote:
> On Jun 04, 2008 19:56 -0400, Theodore Ts'o wrote:
> > If a journal checksum error is detected, the ext4 filesystem will call
> > ext4_error(), and the mount will either continue, become a read-only
> > mount, or cause a kernel panic based on the superblock flags
> > indicating the user's preference of what to do in case of filesystem
> > corruption being detected.
> >
> > XXX should we simply fail the mount instead in the panic case?
>
> It does seem that if someone has a bad ext4 root filesystem it would be
> easy to get an unusable system. That is why there are no "ext3_error"
> or "ext4_error" calls anywhere in ext[34]_fill_super(). They are all
> instead "printk(KERN_ERR ...)" and the mount fails.
Well, failing the mount or panic'ing as the same result for the root
filesystem. It is rude to panic when mounting a corrupt filesystem,
especially when you could just fail the mount, though. I'll make that change.
>
> > diff --git a/scripts/package/Makefile b/scripts/package/Makefile
> > index 5e32607..f758b75 100644
> > --- a/scripts/package/Makefile
> > +++ b/scripts/package/Makefile
>
> Not sure what the rest of this patch is...
>
Some ditritus casued by make-kpkg that slipped in. Oops, sorry about
that.
- Ted
prev parent reply other threads:[~2008-06-05 16:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-24 22:34 What to do when the journal checksum is incorrect Theodore Ts'o
2008-05-25 6:30 ` Andreas Dilger
2008-05-25 11:38 ` Theodore Tso
2008-05-26 14:54 ` Theodore Tso
2008-05-26 18:24 ` Andreas Dilger
2008-05-26 21:28 ` Ric Wheeler
2008-06-03 10:22 ` Girish Shilamkar
2008-06-03 21:27 ` Andreas Dilger
2008-06-04 23:40 ` Theodore Tso
2008-06-04 23:56 ` [PATCH] jbd2: Fix memory leak when verifying checksums in the journal Theodore Ts'o
2008-06-04 23:56 ` [PATCH] jbd2: If a journal checksum error is detected, propagate the error to ext4 Theodore Ts'o
2008-06-05 3:17 ` Andreas Dilger
2008-06-05 16:21 ` Theodore Tso [this message]
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=20080605162117.GD25477@mit.edu \
--to=tytso@mit.edu \
--cc=Girish.Shilamkar@sun.com \
--cc=adilger@sun.com \
--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.