From 6e6d166c9ca6771ac11fd223d48293424601d569 Mon Sep 17 00:00:00 2001 From: jxiong Date: Wed, 11 Feb 2009 09:27:53 +0000 Subject: [PATCH] revert the patch for bug 17914, since it breaks sanity:65i. --- lustre/obdclass/obd_mount.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 5a618ff..04d012c 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -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 -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) -- 1.8.3.1