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

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Wed Sep 29 14:34:27 CDT 2004


Author: zab
Date: 2004-09-29 14:34:25 -0500 (Wed, 29 Sep 2004)
New Revision: 281

Modified:
   trunk/mkfs.ocfs2/mkfs.c
Log:
o use fe_off when creating '.' so that its inode in the directory entry points
  to the directory it is in.  fsck:pass2 found this.  pass3 will probably
  motivate a similar fix for '..'.


Modified: trunk/mkfs.ocfs2/mkfs.c
===================================================================
--- trunk/mkfs.ocfs2/mkfs.c	2004-09-29 18:59:59 UTC (rev 280)
+++ trunk/mkfs.ocfs2/mkfs.c	2004-09-29 19:34:25 UTC (rev 281)
@@ -404,7 +404,7 @@
 	alloc_from_bitmap (s, need, s->global_bm, &system_dir_rec.extent_off, &system_dir_rec.extent_len);
 	system_dir_rec.fe_off = alloc_inode(s, 1);
 	system_dir->record = &system_dir_rec;
-	add_entry_to_directory(s, system_dir, ".", system_dir_rec.extent_off, OCFS2_FT_DIR);
+	add_entry_to_directory(s, system_dir, ".", system_dir_rec.fe_off, OCFS2_FT_DIR);
 	add_entry_to_directory(s, system_dir, "..", system_dir_rec.extent_off, OCFS2_FT_DIR);
 
 	for (i = 0; i < NUM_SYSTEM_INODES; i++) {
@@ -430,7 +430,7 @@
 	tmprec = &record[ORPHAN_DIR_SYSTEM_INODE][0];
 	orphan_dir->record = tmprec;
 	alloc_from_bitmap(s, 1, s->global_bm, &tmprec->extent_off, &tmprec->extent_len);
-	add_entry_to_directory(s, orphan_dir, ".", tmprec->extent_off, OCFS2_FT_DIR);
+	add_entry_to_directory(s, orphan_dir, ".", tmprec->fe_off, OCFS2_FT_DIR);
 	add_entry_to_directory(s, orphan_dir, "..", tmprec->extent_off, OCFS2_FT_DIR);
 
 	tmprec = s->global_bm->bm_record;



More information about the Ocfs2-tools-commits mailing list