From f51d0eff906a99addbc683d3d296edd16f11ced8 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 14 May 2006 17:30:51 -0400 Subject: [PATCH] Remove needless sanity check in tune2fs's -i option. 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" --- misc/ChangeLog | 7 +++++++ misc/tune2fs.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/misc/ChangeLog b/misc/ChangeLog index 36ec5c7d5..69ccfdf9f 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,10 @@ +2006-05-14 Theodore Tso + + * 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 * mke2fs.c (test_disk): Pass the private option -X to badblocks so diff --git a/misc/tune2fs.c b/misc/tune2fs.c index adf0b5675..a0fcf37da 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -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(); -- 2.47.3