Skip to contentSkip to conversation

cluster/gfs/gfs_mkfs structures.c

Cluster-devel [email protected] 1 participant 1 message Jul 14, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-07-14 19:28:26

Modified files:
gfs/gfs_mkfs : structures.c

Log message:
Fix divide by zero because superblock constants were not correctly set.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs/gfs_mkfs/structures.c.diff?cvsroot=cluster&r1=1.3&r2=1.4

gfs/gfs_mkfs/structures.c +2 -0
@@ -122,6 +122,8 @@
 	sbd->sd_sb.sb_bsize = comline->bsize;
 	sbd->sd_sb.sb_bsize_shift = ffs(comline->bsize) - 1;
 	sbd->sd_sb.sb_seg_size = comline->seg_size;
+	
+	compute_constants(sbd);
 
 	sbd->sd_sb.sb_jindex_di.no_formal_ino = jindex_dinode;
 	sbd->sd_sb.sb_jindex_di.no_addr = jindex_dinode;