*/
 static int lmd_parse(char *options, struct lustre_mount_data *lmd)
 {
-       char *s1, *s2, *devname = NULL;
+       char *s1, *s2, *s3, *devname = NULL;
        struct lustre_mount_data *raw = (struct lustre_mount_data *)options;
        int rc = 0;
 
                /* Skip whitespace and extra commas */
                while (*s1 == ' ' || *s1 == ',')
                        s1++;
+               s3 = s1;
 
                /* Client options are parsed in ll_options: eg. flock,
                 * user_xattr, acl
                        rc = lmd_parse_mgssec(lmd, s1 + 7);
                        if (rc)
                                goto invalid;
+                       s3 = s2;
                        clear++;
                /* ost exclusion list */
                } else if (strncmp(s1, "exclude=", 8) == 0) {
                        size_t length, params_length;
                        char *tail = strchr(s1 + 6, ',');
 
-                       if (!tail)
+                       if (!tail) {
                                length = strlen(s1);
-                       else
-                               length = tail - s1;
+                       } else {
+                               lnet_nid_t nid;
+                               char *param_str = tail + 1;
+                               int supplementary = 1;
+
+                               while (!class_parse_nid_quiet(param_str, &nid,
+                                                             ¶m_str)) {
+                                       supplementary = 0;
+                               }
+                               length = param_str - s1 - supplementary;
+                       }
                        length -= 6;
                        params_length = strlen(lmd->lmd_params);
                        if (params_length + length + 1 >= LMD_PARAMS_MAXLEN)
                        strncat(lmd->lmd_params, s1 + 6, length);
                        lmd->lmd_params[params_length + length] = '\0';
                        strlcat(lmd->lmd_params, " ", LMD_PARAMS_MAXLEN);
+                       s3 = s1 + 6 + length;
                        clear++;
                } else if (strncmp(s1, "osd=", 4) == 0) {
                        rc = lmd_parse_string(&lmd->lmd_osd_type, s1 + 4);