]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: don't check for future superblock times if checkinterval == 0
authorTheodore Ts'o <tytso@mit.edu>
Thu, 2 Jan 2020 02:50:27 +0000 (21:50 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 2 Jan 2020 02:50:27 +0000 (21:50 -0500)
commitc52d930f3ffbc19fa248d53daa171436ac391bb5
treea84db3685ce8f369592e42898a95a5399fdc6688
parente7c22958b31f65bff3620d9d8154c78b56e4ee35
e2fsck: don't check for future superblock times if checkinterval == 0

We are no longer enabling periodic file system checks by default in
mke2fs.  The only reason why we force file system checks if the last
mount time or last write time in the superblock is if this might
bypass the periodic file systme checks.  So if the checkinterval is
zero, skip the last mount/write time checks since there's no reason to
force a check just because the system clock is incorrect.

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