Whamcloud - gitweb
e2fsck: Fix superblock times in the future even if buggy_init_scripts=1
authorTheodore Ts'o <tytso@mit.edu>
Fri, 17 Jul 2009 03:44:50 +0000 (23:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 17 Jul 2009 03:44:50 +0000 (23:44 -0400)
commit26ea4899d1fea0fbc5d28120944d2c2758ac1b11
tree506bb855d7bd3bb7960d62ad2bde27380c4141d0
parent25c7e0c3042cb92a71d25cb3c2709a55b9f120a6
e2fsck: Fix superblock times in the future even if buggy_init_scripts=1

Unfortunately, distributions like Ubuntu seem to have buggy init
scripts that run e2fsck and mount the root filesystem before making
sure the system time and time zone is correctly set.  As a result, a
filesystem's last write and last mounted time can be set in future.
The buggy_init_scripts configuration option will stop e2fsck from
aborting the boot process, but it also inhibits the superblock times
from getting fixed.  This causes resize2fs to refuse to resize the
filesystem, even after running e2fsck on the file system.  To deal
with this, we need to fix the superblock write times unconditionally.

Addresses-Launchpad-bug: #373409

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/problem.c
e2fsck/problem.h
e2fsck/super.c