Whamcloud - gitweb
Remove needless sanity check in tune2fs's -i option.
authorTheodore Ts'o <tytso@mit.edu>
Sun, 14 May 2006 21:30:51 +0000 (17:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 14 May 2006 21:30:51 +0000 (17:30 -0400)
We were complaining with a confusing error message if the user tried to specify
a check interval larger than a 365 days.  It's probably a bad idea if the user wants to
do this, but it's not worth it to complain.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/ChangeLog
misc/tune2fs.c

index 36ec5c7..69ccfdf 100644 (file)
@@ -1,3 +1,10 @@
+2006-05-14  Theodore Tso  <tytso@mit.edu>
+
+       * tune2fs.c (parse_tune2fs_options): Don't give a confusing error
+               message if the user specifies an check time interval
+               greater than a year; it's probably a bad idea, but it's
+               not worth it to complain.
+
 2006-05-13  Theodore Tso  <tytso@mit.edu>
 
        * mke2fs.c (test_disk): Pass the private option -X to badblocks so
index adf0b56..a0fcf37 100644 (file)
@@ -595,7 +595,7 @@ static void parse_tune2fs_options(int argc, char **argv)
                                        tmp++;
                                        break;
                                }
-                               if (*tmp || interval > (365 * 86400)) {
+                               if (*tmp) {
                                        com_err (program_name, 0,
                                                _("bad interval - %s"), optarg);
                                        usage();