Whamcloud - gitweb
revert the patch for bug 17914, since it breaks sanity:65i.
authorjxiong <jxiong>
Wed, 11 Feb 2009 09:27:53 +0000 (09:27 +0000)
committerjxiong <jxiong>
Wed, 11 Feb 2009 09:27:53 +0000 (09:27 +0000)
lustre/obdclass/obd_mount.c

index 5a618ff..04d012c 100644 (file)
@@ -1684,18 +1684,6 @@ int server_name2index(char *svname, __u32 *idx, char **endptr)
         if (!dash)
                 return(-EINVAL);
 
-        if (dash == svname) /* svname started w/ a `-' and only has one `-' */
-                return(-EINVAL);
-
-        /* intepret <fsname>-MDTXXXXX-mdc as mdt, the better way is to pass
-         * in the fsname, then determine the server index */
-        if (!strcmp(LUSTRE_MDC_NAME, dash + 1)) {
-                dash--;
-                for (; dash > svname && *dash != '-'; dash--);
-                if (dash == svname)
-                        return(-EINVAL);
-        }
-
         if (strncmp(dash + 1, "MDT", 3) == 0)
                 rc = LDD_F_SV_TYPE_MDT;
         else if (strncmp(dash + 1, "OST", 3) == 0)