Whamcloud - gitweb
mke2fs: don't complain if the fs type "default" is not defined in mke2fs.conf
authorTheodore Ts'o <tytso@mit.edu>
Wed, 22 Dec 2010 23:31:36 +0000 (18:31 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Dec 2010 23:31:36 +0000 (18:31 -0500)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/mke2fs.c
po/e2fsprogs.pot

index d15b94c..b994e1e 100644 (file)
@@ -1059,13 +1059,13 @@ static char **parse_fs_type(const char *fs_type,
                        *t = '\0';
 
                if (*cp) {
-                       if (!profile_has_subsection(profile, "fs_types", cp))
+                       if (profile_has_subsection(profile, "fs_types", cp))
+                               push_string(&list, cp);
+                       else if (strcmp(cp, "default") != 0)
                                fprintf(stderr,
                                        _("\nWarning: the fs_type %s is not "
-                                         "defined in /etc/mke2fs.conf\n\n"),
+                                         "defined in mke2fs.conf\n\n"),
                                        cp);
-                       else
-                               push_string(&list, cp);
                }
                if (t)
                        cp = t+1;
index d0b1e12..a5b8a9e 100644 (file)
@@ -3875,7 +3875,7 @@ msgstr ""
 #, c-format
 msgid ""
 "\n"
-"Warning: the fs_type %s is not defined in /etc/mke2fs.conf\n"
+"Warning: the fs_type %s is not defined in mke2fs.conf\n"
 "\n"
 msgstr ""