OSDN Git Service

e2fsck: Accept superblock times to be fudged by up to 24 hours by default
authorTheodore Ts'o <tytso@mit.edu>
Sat, 17 Oct 2009 00:46:45 +0000 (20:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 17 Oct 2009 00:59:20 +0000 (20:59 -0400)
commitba5131f6d48eded504e84c2a8ffc8131df8a512e
tree9e5276377ee85e57c7ed768f4aa6bbf768c2f587
parent8a8f36540bbf5d4397cf476e216e9a720b5c1d8e
e2fsck: Accept superblock times to be fudged by up to 24 hours by default

Unfortunately, due to Windows' unfortunate design decision to
configure the hardware clock to tick localtime, instead of the more
proper and less error-prone UTC time, many users end up in the
situation where the system clock is incorrectly set at the time when
e2fsck is run.

Historically this was usually due to some distributions having buggy
init scripts and/or installers that didn't correctly detect this case
and take appropriate countermeasures.  However, it's still possible,
despite the best efforts of init script and installer authors to not
be able to detect this misconfiguration, usually due to a buggy or
misconfigured virtualization manager or the installer not having
access to a network time server during the installation process.  So
by default, we allow the superblock times to be fudged by up to 24
hours.  This can be disabled by setting options.accept_time_fudge to
the boolean value of false in e2fsck.conf.  The old
options.buggy_init_scripts is left for backwards compatibility.

Since we are now accepting the 24 hour time fudge by default, there is
no longer a need to install an Ubuntu-specific e2fsck.conf file, so we
can remove it.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian/rules
e2fsck/e2fsck.conf.5.in
e2fsck/e2fsck.conf.ubuntu [deleted file]
e2fsck/problem.c
e2fsck/super.c