This is the mail archive of the cluster-cvs@sourceware.org mailing list for the cluster.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cluster: RHEL55 - fsck.gfs2 unable to fix some rindex corruption forblock size < 4K


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:
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]