Whamcloud - gitweb
changes to get test #46 working
[fs/lustre-release.git] / lustre / mds / mds_open.c
index c0fe7ef..9c86d33 100644 (file)
@@ -905,10 +905,12 @@ int mds_open(struct mds_update_record *rec, int offset,
                  * should live at this MDS or at another one */
                 int i;
                 i = mea_name2idx(mea, rec->ur_name, rec->ur_namelen - 1);
-                if (mea->mea_master != 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);
+                if (mea->mea_master != mea->mea_fids[i].mds) {
+                        CERROR("%s: inapropriate MDS(%d) for %lu/%u:%s."
+                               " should be %d(%d)\n", obd->obd_name,
+                               mea->mea_master, dparent->d_inode->i_ino,
+                               dparent->d_inode->i_generation, rec->ur_name,
+                               mea->mea_fids[i].mds, i);
                         GOTO(cleanup, rc = -ERESTART);
                 }
         }