]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: fix last mount time and last write time in preen mode
authorJan Kara <jack@suse.cz>
Fri, 4 Jul 2014 20:24:18 +0000 (16:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 5 Jul 2014 03:59:45 +0000 (23:59 -0400)
commit87aca2ad028b9841d3ec32edd858ccc91d96ab4c
treeef339c1a561982cd73847b35f3b71d3473ebae02
parent4b59352edb5ce783ba578d708de1fda981acfec6
e2fsck: fix last mount time and last write time in preen mode

Fixing last mount time and last write time is safe - there's no risk of
loosing any important information or making corruption significantly
worse even if we get it wrong. So let's just fix these times in preen
mode. This allows initrd to automatically check and mount root
filesystem in case system clock is wrong without having to manually set
broken_system_clock variable (openSUSE uses broken_system_clock by default
to avoid these problems during boot but this disables time-based checks
even on systems where clock is fine so that's not ideal either).

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/problem.c