Whamcloud - gitweb
LU-1581 utils: unknown fstype
[fs/lustre-release.git] / lustre / utils / mkfs_lustre.c
index 21f7d19..0af4fae 100644 (file)
@@ -293,6 +293,11 @@ int parse_opts(int argc, char *const argv[], struct mkfs_opts *mop,
                                 }
                                 i++;
                         }
                                 }
                                 i++;
                         }
+                       if (i == LDD_MT_LAST) {
+                               fprintf(stderr, "%s: invalid backend filesystem"
+                                       " type %s\n", progname, optarg);
+                               return 1;
+                       }
                         break;
                 }
                 case 'c':
                         break;
                 }
                 case 'c':