public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: Bob Peterson <rpeterso@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: cluster: RHEL55 - fsck.gfs2 unable to fix some rindex corruption for block size < 4K Date: Wed, 09 Sep 2009 15:10:00 -0000 [thread overview] Message-ID: <20090909150957.C2C11120195@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=f847d934b59f3d085bd3923039b3064d2511c25c Commit: f847d934b59f3d085bd3923039b3064d2511c25c Parent: 91583cc0f7a6364eb5983892b92976c7434cfc7b Author: Bob Peterson <rpeterso@redhat.com> AuthorDate: Wed Sep 9 09:51:36 2009 -0500 Committer: Bob Peterson <rpeterso@redhat.com> CommitterDate: Wed Sep 9 09:51:36 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. rhbz#520762 --- 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 b32c5b4..9a42021 100644 --- a/gfs2/libgfs2/super.c +++ b/gfs2/libgfs2/super.c @@ -119,6 +119,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; out:
reply other threads:[~2009-09-09 15:10 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: 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=20090909150957.C2C11120195@lists.fedorahosted.org \ --to=rpeterso@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.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: linkBe 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).