public inbox for
help / color / mirror / Atom feed
From: Bob Peterson <>
Subject: cluster: STABLE3 - fsck.gfs2 unable to fix some rindex corruption for block size < 4K
Date: Wed, 09 Sep 2009 15:08:00 -0000	[thread overview]
Message-ID: <> (raw)

Commit:        0a053b10bf5888a0bc879296bef6fe7e5565400a
Parent:        7b104c967022cf1d1b961e65ebd9796edf485c4f
Author:        Bob Peterson <>
AuthorDate:    Wed Sep 9 09:51:36 2009 -0500
Committer:     Bob Peterson <>
CommitterDate: Wed Sep 9 10:09:17 2009 -0500

fsck.gfs2 unable to fix some rindex corruption for block size < 4K

This patch fixes libgfs2 so that the superblock location is
adjusted properly after the block size is known.  That enables
fsck.gfs2 to properly place the damaged first rindex entry.

 gfs2/libgfs2/super.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gfs2/libgfs2/super.c b/gfs2/libgfs2/super.c
index d521f99..ba3af34 100644
--- a/gfs2/libgfs2/super.c
+++ b/gfs2/libgfs2/super.c
@@ -106,6 +106,7 @@ int read_sb(struct gfs2_sbd *sdp)
 		error = -1;
 	sdp->fssize = lseek(sdp->device_fd, 0, SEEK_END) / sdp->sd_sb.sb_bsize;
+	sdp->sb_addr = GFS2_SB_ADDR * GFS2_BASIC_BLOCK / sdp->bsize;

                 reply	other threads:[~2009-09-09 15:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* 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 read-only IMAP folder(s) and NNTP newsgroup(s).