[Ocfs2-commits] mfasheh commits r954 - trunk/src
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Thu May 27 18:07:34 CDT 2004
Author: mfasheh
Date: 2004-05-27 17:07:32 -0500 (Thu, 27 May 2004)
New Revision: 954
Modified:
trunk/src/super.c
Log:
* fix a bug where local alloc recovery would crash on startup because the system inodes weren't initialized yet.
Modified: trunk/src/super.c
===================================================================
--- trunk/src/super.c 2004-05-27 18:16:27 UTC (rev 953)
+++ trunk/src/super.c 2004-05-27 22:07:32 UTC (rev 954)
@@ -329,12 +329,6 @@
sb->s_root = root;
- status = ocfs_init_system_inodes(osb);
- if (status < 0) {
- LOG_ERROR_STATUS(status);
- goto read_super_error;
- }
-
printk ("ocfs2: Mounting device (%u,%u) on %s (node %d)\n",
MAJOR(sb->s_dev), MINOR(sb->s_dev),
osb->node_cfg_info[osb->node_num]->node_name, osb->node_num);
@@ -1034,6 +1028,12 @@
osb->root_inode = inode;
+ status = ocfs_init_system_inodes(osb);
+ if (status < 0) {
+ LOG_ERROR_STATUS(status);
+ goto leave;
+ }
+
/* Read the publish sector for this node and cleanup dirent being */
/* modified when we crashed. */
LOG_TRACE_STR ("ocfs_check_volume...");
More information about the Ocfs2-commits
mailing list