[Ocfs2-tools-commits] mfasheh commits r381 -
branches/cluster-groups/mkfs.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Tue Nov 9 22:09:33 CST 2004
Author: mfasheh
Date: 2004-11-09 22:09:30 -0600 (Tue, 09 Nov 2004)
New Revision: 381
Modified:
branches/cluster-groups/mkfs.ocfs2/mkfs.c
Log:
* free bit counts weren't being update properly.
Modified: branches/cluster-groups/mkfs.ocfs2/mkfs.c
===================================================================
--- branches/cluster-groups/mkfs.ocfs2/mkfs.c 2004-11-09 20:01:18 UTC (rev 380)
+++ branches/cluster-groups/mkfs.ocfs2/mkfs.c 2004-11-10 04:09:30 UTC (rev 381)
@@ -1057,11 +1057,13 @@
s->first_cluster_group,
0, s->global_cpg, 1);
/* we'll set his bit later when we initialize for the super
- * block and friends. */
+ * block and friends, so totally munge these values for
+ * now. */
ocfs2_clear_bit(0, bitmap->groups[0]->gd->bg_bitmap);
+ bitmap->groups[0]->gd->bg_free_bits_count++;
bm_record->bi.used_bits--;
bitmap->groups[0]->chain_total = s->global_cpg;
- bitmap->groups[0]->chain_free = bitmap->groups[0]->chain_total - 1;
+ bitmap->groups[0]->chain_free = s->global_cpg;
chain = 1;
blkno = (uint64_t) s->global_cpg << (s->cluster_size_bits - s->blocksize_bits);
More information about the Ocfs2-tools-commits
mailing list