Whamcloud - gitweb
- more debug messages for #46 failure
authoralex <alex>
Thu, 24 Jun 2004 07:05:05 +0000 (07:05 +0000)
committeralex <alex>
Thu, 24 Jun 2004 07:05:05 +0000 (07:05 +0000)
lustre/lmv/lmv_intent.c
lustre/mds/mds_open.c
lustre/mds/mds_reint.c

index 5cfa650..d860e86 100644 (file)
@@ -170,6 +170,15 @@ repeat:
                                      flags, reqp, cb_blocking);
         if (rc != 0) {
                 LASSERT(rc < 0);
+                CERROR("can't handle remote %s: dir %lu/%lu/%lu(%lu/%lu/%lu):"
+                       "%*s: %d\n", LL_IT2STR(it),
+                       (unsigned long) pfid->mds,
+                       (unsigned long) pfid->id,
+                       (unsigned long) pfid->generation,
+                       (unsigned long) rpfid.mds,
+                       (unsigned long) rpfid.id,
+                       (unsigned long) rpfid.generation,
+                       len, name, rc);
                 RETURN(rc);
         }
 
index df0c8b5..5b9efb1 100644 (file)
@@ -906,8 +906,9 @@ int mds_open(struct mds_update_record *rec, int offset,
                 int i;
                 i = mea_name2idx(mea, rec->ur_name, rec->ur_namelen - 1);
                 if (mea->mea_master != i) {
-                        CERROR("inapropriate MDS(%d) for %s. should be %d\n",
-                                mea->mea_master, rec->ur_name, i);
+                        CERROR("inapropriate MDS(%d) for %lu/%u:%s. should be %d\n",
+                                mea->mea_master, dparent->d_inode->i_ino,
+                                dparent->d_inode->i_generation, rec->ur_name, i);
                         GOTO(cleanup, rc = -ERESTART);
                 }
         }
index 84b6442..9a54a4d 100644 (file)
@@ -603,8 +603,9 @@ static int mds_reint_create(struct mds_update_record *rec, int offset,
                 int i;
                 i = mea_name2idx(mea, rec->ur_name, rec->ur_namelen - 1);
                 if (mea->mea_master != i) {
-                        CERROR("inapropriate MDS(%d) for %s. should be %d\n",
-                                mea->mea_master, rec->ur_name, i);
+                        CERROR("inapropriate MDS(%d) for %lu/%u:%s. should be %d\n",
+                                mea->mea_master, dparent->d_inode->i_ino,
+                                dparent->d_inode->i_generation, rec->ur_name, i);
                         GOTO(cleanup, rc = -ERESTART);
                 }
         }