Whamcloud - gitweb
- OST A/M/D should work OK in non-CMD setup
authoralex <alex>
Sat, 24 Sep 2005 00:17:35 +0000 (00:17 +0000)
committeralex <alex>
Sat, 24 Sep 2005 00:17:35 +0000 (00:17 +0000)
lustre/mds/mds_lov.c

index 6517874..c69e8b7 100644 (file)
@@ -862,13 +862,15 @@ int mds_dt_update_config(struct obd_device *obd, int clean)
                 GOTO(exit, rc);
         }
         /* retrieve size of EA */
                 GOTO(exit, rc);
         }
         /* retrieve size of EA */
-        rc = obd_get_info(mds->mds_md_exp, strlen("mdsize"),
-                          "mdsize", &valsize, &value);
-        
-        if (value > mds->mds_max_mdsize)
-                mds->mds_max_mdsize = value;
+        if (mds->mds_md_exp) {
+                rc = obd_get_info(mds->mds_md_exp, strlen("mdsize"),
+                                  "mdsize", &valsize, &value);
+
+                if (value > mds->mds_max_mdsize)
+                        mds->mds_max_mdsize = value;
 
 
-        CDEBUG(D_INFO, "mds max md size %d \n", mds->mds_max_mdsize);
+                CDEBUG(D_INFO, "mds max md size %d \n", mds->mds_max_mdsize);
+        }
         
         if (rc == 0)
                 mds->mds_config_version = version;
         
         if (rc == 0)
                 mds->mds_config_version = version;