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]

gfs2-utils: master - gfs2_tool df segfault on non-4K block size


Gitweb:        http://git.fedorahosted.org/git/gfs2-utils.git?p=gfs2-utils.git;a=commitdiff;h=956d3d5651dc2185e1f8ce328973011e9c46430a
Commit:        956d3d5651dc2185e1f8ce328973011e9c46430a
Parent:        d6cfe262e1590eb5ac7f16ad7d1e189dd01855bd
Author:        Bob Peterson <rpeterso@redhat.com>
AuthorDate:    Tue Feb 17 12:50:13 2009 -0600
Committer:     Bob Peterson <rpeterso@redhat.com>
CommitterDate: Tue Feb 17 12:50:13 2009 -0600

gfs2_tool df segfault on non-4K block size

bz 485761
---
 gfs2/tool/df.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gfs2/tool/df.c b/gfs2/tool/df.c
index a2ab0e9..207fac7 100644
--- a/gfs2/tool/df.c
+++ b/gfs2/tool/df.c
@@ -121,8 +121,9 @@ do_df_one(char *path)
 		exit(-1);
 	}
 
-	compute_constants(&sbd);
 	gfs2_sb_in(&sbd.sd_sb, buf); /* parse it out into the sb structure */
+	sbd.bsize = sbd.sd_sb.sb_bsize;
+	compute_constants(&sbd);
 
 	sbd.master_dir = gfs2_load_inode(&sbd,
 					 sbd.sd_sb.sb_master_dir.no_addr);


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