Whamcloud - gitweb
b=6360
authoralex <alex>
Fri, 20 May 2005 11:35:45 +0000 (11:35 +0000)
committeralex <alex>
Fri, 20 May 2005 11:35:45 +0000 (11:35 +0000)
 - couple asserts and debug info

lustre/mds/mds_lov.c
lustre/mds/mds_unlink_open.c

index 6fddf12..0f6bf52 100644 (file)
@@ -312,6 +312,7 @@ int mds_dt_connect(struct obd_device *obd, char * lov_name)
          * it can use the obd_recovering flag to determine when the
          * the OBD is full available. */
         if (!obd->obd_recovering) {
+                CDEBUG(D_OTHER, "call mds_postrecov_common()\n");
                 rc = mds_postrecov_common(obd);
                 if (rc > 0) 
                         rc = 0;
index 127adc8..154efb3 100644 (file)
@@ -100,6 +100,7 @@ static int mds_unlink_orphan(struct obd_device *obd, struct dentry *dchild,
         ENTRY;
 
         LASSERT(mds->mds_dt_obd != NULL);
+        LASSERT(obd->obd_recovering == 0);
 
         /* We don't need to do any of these other things for orhpan dirs,
          * especially not mds_get_md (may get a default LOV EA, bug 4554) */
@@ -174,6 +175,7 @@ int mds_cleanup_orphans(struct obd_device *obd)
         int rc = 0, item = 0, namlen;
         ENTRY;
 
+        LASSERT(obd->obd_recovering == 0);
         push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL);
         dentry = dget(mds->mds_pending_dir);
         if (IS_ERR(dentry))