[Ocfs2-tools-commits] zab commits r390 - trunk/mkfs.ocfs2

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Nov 11 15:53:34 CST 2004


Author: zab
Date: 2004-11-11 15:53:32 -0600 (Thu, 11 Nov 2004)
New Revision: 390

Modified:
   trunk/mkfs.ocfs2/mkfs.c
Log:
o set the bitmap bg_parent_dinode to the inode nr instead of the byte offset


Modified: trunk/mkfs.ocfs2/mkfs.c
===================================================================
--- trunk/mkfs.ocfs2/mkfs.c	2004-11-11 21:38:56 UTC (rev 389)
+++ trunk/mkfs.ocfs2/mkfs.c	2004-11-11 21:53:32 UTC (rev 390)
@@ -1002,7 +1002,8 @@
 	group->gd->bg_size = (uint32_t)ocfs2_group_bitmap_size(s->blocksize);
 	group->gd->bg_bits = cpg * bpc;
 	group->gd->bg_chain = chain;
-	group->gd->bg_parent_dinode = alloc_inode->fe_off;
+	group->gd->bg_parent_dinode = alloc_inode->fe_off >> 
+					s->blocksize_bits;
 	group->gd->bg_blkno = blkno;
 
 	/* First bit set to account for the descriptor block */
@@ -1655,7 +1656,7 @@
 	uint64_t parent_blkno;
 	ocfs2_group_desc *gd;
 
-	parent_blkno = bitmap->bm_record->fe_off;
+	parent_blkno = bitmap->bm_record->fe_off >> s->blocksize_bits;
 	for(i = 0; i < s->nr_cluster_groups; i++) {
 		gd = bitmap->groups[i]->gd;
 		if (strcmp(gd->bg_signature, OCFS2_GROUP_DESC_SIGNATURE)) {



More information about the Ocfs2-tools-commits mailing list