[Ocfs2-tools-commits] zab commits r343 - trunk/mkfs.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Oct 22 20:37:53 CDT 2004
Author: zab
Date: 2004-10-22 20:37:51 -0500 (Fri, 22 Oct 2004)
New Revision: 343
Modified:
trunk/mkfs.ocfs2/mkfs.c
Log:
o make sure to set the parent dinode in the alloc group we setup
Modified: trunk/mkfs.ocfs2/mkfs.c
===================================================================
--- trunk/mkfs.ocfs2/mkfs.c 2004-10-22 21:19:43 UTC (rev 342)
+++ trunk/mkfs.ocfs2/mkfs.c 2004-10-23 01:37:51 UTC (rev 343)
@@ -442,6 +442,12 @@
}
}
+ /* back when we initialized the alloc group we hadn't allocated
+ * an inode for the global allocator yet */
+ tmprec = &(record[GLOBAL_INODE_ALLOC_SYSTEM_INODE][0]);
+ s->system_group->gd->bg_parent_dinode =
+ cpu_to_le64(tmprec->fe_off >> s->blocksize_bits);
+
tmprec = &(record[DLM_SYSTEM_INODE][0]);
need = (AUTOCONF_BLOCKS(s->initial_nodes, 32) +
PUBLISH_BLOCKS(s->initial_nodes, 32) +
More information about the Ocfs2-tools-commits
mailing list