Blame SOURCES/e2fsprogs-1.42.9-14-e2fsck-fix-last-mount-time-and-last-write-time-in-pr.patch

252946
From 0d70bb1ca641ac31c84130e2d701ea296bc059fb Mon Sep 17 00:00:00 2001
252946
From: Jan Kara <jack@suse.cz>
252946
Date: Fri, 4 Jul 2014 16:24:18 -0400
252946
Subject: [PATCH 15/16] e2fsck: fix last mount time and last write time in
252946
 preen mode
252946
252946
commit 87aca2ad028b9841d3ec32edd858ccc91d96ab4c
252946
252946
Fixing last mount time and last write time is safe - there's no risk of
252946
loosing any important information or making corruption significantly
252946
worse even if we get it wrong. So let's just fix these times in preen
252946
mode. This allows initrd to automatically check and mount root
252946
filesystem in case system clock is wrong without having to manually set
252946
broken_system_clock variable (openSUSE uses broken_system_clock by default
252946
to avoid these problems during boot but this disables time-based checks
252946
even on systems where clock is fine so that's not ideal either).
252946
252946
Signed-off-by: Jan Kara <jack@suse.cz>
252946
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
252946
---
252946
 e2fsck/problem.c | 4 ++--
252946
 1 file changed, 2 insertions(+), 2 deletions(-)
252946
252946
diff --git a/e2fsck/problem.c b/e2fsck/problem.c
252946
index a01b2560..1aac7851 100644
252946
--- a/e2fsck/problem.c
252946
+++ b/e2fsck/problem.c
252946
@@ -336,12 +336,12 @@ static struct e2fsck_problem problem_table[] = {
252946
 	/* Last mount time is in the future */
252946
 	{ PR_0_FUTURE_SB_LAST_MOUNT,
252946
 	  N_("@S last mount time (%t,\n\tnow = %T) is in the future.\n"),
252946
-	  PROMPT_FIX, PR_NO_OK },
252946
+	  PROMPT_FIX, PR_PREEN_OK | PR_NO_OK },
252946
 
252946
 	/* Last write time is in the future */
252946
 	{ PR_0_FUTURE_SB_LAST_WRITE,
252946
 	  N_("@S last write time (%t,\n\tnow = %T) is in the future.\n"),
252946
-	  PROMPT_FIX, PR_NO_OK },
252946
+	  PROMPT_FIX, PR_PREEN_OK | PR_NO_OK },
252946
 
252946
 	{ PR_0_EXTERNAL_JOURNAL_HINT,
252946
 	  N_("@S hint for external superblock @s %X.  "),
252946
-- 
252946
2.20.1
252946