From: Theodore Tso <tytso@mit.edu>
To: Girish Shilamkar <Girish.Shilamkar@Sun.COM>
Cc: linux-ext4@vger.kernel.org, Andreas Dilger <adilger@clusterfs.com>
Subject: Re: What to do when the journal checksum is incorrect
Date: Wed, 4 Jun 2008 19:40:57 -0400 [thread overview]
Message-ID: <20080604234057.GA9641@mit.edu> (raw)
In-Reply-To: <1212488533.3272.23.camel@alpha.linsyssoft.com>
On Tue, Jun 03, 2008 at 03:52:13PM +0530, Girish Shilamkar wrote:
> I went through the code and also re-ran the e2fsprogs tests which we had
> sent upstream for journal checksum. And found that if the transaction is
> bad it is marked as info->end_transaction which indicates a bad
> transaction and is not replayed.
You're correct; my apologies. I had misplaced or misfiled your
patches, and recreated the patch to support async checksums, and I
screwed up the patch by missing this change at the end of
do_one_pass()
if (pass == PASS_SCAN) {
- info->end_transaction = next_commit_ID;
+ if (!info->end_transaction)
+ info->end_transaction = next_commit_ID;
} else {
/* It's really bad news if different passes end up at
* different places (but possible due to IO errors). */
My patch to fix the buffer head leak is still relevant, though, and
I've created a patch to reflect the error up to ext4.
> > Worse yet, no indication of any problems is
> > sent back to the ext4 filesystem code.
> This definitely is not present and needs to be incorporated.
>
I will send the patches that I've placed into the ext4 patch queue
relevant to the journal checksum code on this thread.
- Ted
next prev parent reply other threads:[~2008-06-04 23:41 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 [this message]
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
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=20080604234057.GA9641@mit.edu \
--to=tytso@mit.edu \
--cc=Girish.Shilamkar@Sun.COM \
--cc=adilger@clusterfs.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.