public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: STABLE2 - gfs2_tool df segfault on non-4K block size
@ 2009-02-23 15:07 Bob Peterson
  0 siblings, 0 replies; only message in thread
From: Bob Peterson @ 2009-02-23 15:07 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=44d72f72fd0ebda45bf1991be00c751bdb4a1181
Commit:        44d72f72fd0ebda45bf1991be00c751bdb4a1181
Parent:        9a2fff386a93ba70f49d60cbe296c05bc22c97d9
Author:        Bob Peterson <rpeterso@redhat.com>
AuthorDate:    Mon Feb 23 09:05:47 2009 -0600
Committer:     Bob Peterson <rpeterso@redhat.com>
CommitterDate: Mon Feb 23 09:05:47 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 cd3bfaa..8d891bd 100644
--- a/gfs2/tool/df.c
+++ b/gfs2/tool/df.c
@@ -105,8 +105,9 @@ do_df_one(char *path)
 	do_lseek(sbd.device_fd, 0x10 * sbd.bsize);
 	do_read(sbd.device_fd, buf, sbd.bsize); /* read in the superblock */
 
-	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);


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-23 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-23 15:07 cluster: STABLE2 - gfs2_tool df segfault on non-4K block size 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).