public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* gfs2-utils: master - fsck.gfs2 unable to fix some rindex corruption for block size < 4K
@ 2009-09-09 15:03 Bob Peterson
0 siblings, 0 replies; only message in thread
From: Bob Peterson @ 2009-09-09 15:03 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=0ecf462d314e585bcd764314de296703ca9e3b1a
Commit: 0ecf462d314e585bcd764314de296703ca9e3b1a
Parent: 380d66ddadb3b1784de8c40bec1aa0a8d15eb664
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 10:05:06 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 496a337..99f2f20 100644
--- a/gfs2/libgfs2/super.c
+++ b/gfs2/libgfs2/super.c
@@ -108,6 +108,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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-09 15:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-09 15:03 gfs2-utils: master - fsck.gfs2 unable to fix some rindex corruption for block size < 4K Bob Peterson
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).