OSDN Git Service

e2fsck: Skip time-based checks if the time looks insane or broken_system_clock
authorTheodore Ts'o <tytso@mit.edu>
Thu, 13 May 2010 21:36:36 +0000 (17:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 May 2010 21:36:36 +0000 (17:36 -0400)
commit177839e2454dcc298244481da9c72a19b41836be
tree0e998a24865b468bbe4c893494b8db06c2e3ee18
parent65d71894c9f254ea1a5eb836e454dd263b13a867
e2fsck: Skip time-based checks if the time looks insane or broken_system_clock

There are broken embedded devices that have system clocks that always
reset to January 1, 1970 whenever they boot (even if no power is
lost).  There are also systems that have super cheap clock crystals
that can be very inaccurate.  So if the option broken_system_clock is
given, disable all time based checks.  E2fsck will also try to detect
incorrect system clock times, and automatically mark the system clock
as insane.

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