Whamcloud - gitweb
Branch b1_4_newconfig2
authornathan <nathan>
Mon, 19 Sep 2005 22:37:04 +0000 (22:37 +0000)
committernathan <nathan>
Mon, 19 Sep 2005 22:37:04 +0000 (22:37 +0000)
b=8187
minor cleanup

lustre/utils/mount_lustre.c

index 991db98..8e9f9c6 100644 (file)
@@ -276,7 +276,8 @@ int parse_options(char *options, struct lustre_mount_data *lmd, int *flagp)
                         val = atoi(opteq + 1);
                         *opteq = '\0';
                         if (0) {
-                                /* All the network options have gone :)) */
+                                /* NO special lustre options, just standard
+                                   mount options */
                         } else {
                                 fprintf(stderr, "%s: unknown option '%s'\n",
                                         progname, opt);
@@ -304,6 +305,8 @@ build_data(char *source, char *target, char *options,
         char *s;
         int   rc;
 
+        init_options(lmd);
+
         if (lmd_bad_magic(lmd))
                 return 4;
 
@@ -449,7 +452,6 @@ int main(int argc, char *const argv[])
         if (!force && check_mtab_entry(source, target, "lustre"))
                 exit(32);
 
-        init_options(&lmd);
         rc = build_data(source, target, options, &lmd, &flags);
         if (rc) {
                 exit(1);