Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dabfa68
)
e2fsck: Add better explanatory message when s_lastcheck is in the future
author
Theodore Ts'o
<tytso@mit.edu>
Sat, 7 Jun 2008 16:19:08 +0000
(12:19 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sat, 7 Jun 2008 16:19:08 +0000
(12:19 -0400)
Addresses-Debian-Bug: #446005
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c
patch
|
blob
|
history
diff --git
a/e2fsck/unix.c
b/e2fsck/unix.c
index
6173fc1
..
a02c666
100644
(file)
--- a/
e2fsck/unix.c
+++ b/
e2fsck/unix.c
@@
-288,6
+288,10
@@
static void check_if_skip(e2fsck_t ctx)
if (batt && (fs->super->s_mnt_count <
(unsigned) fs->super->s_max_mnt_count*2))
reason = 0;
+ } else if (fs->super->s_checkinterval && (ctx->now < lastcheck)) {
+ reason = _(" has filesystem last checked time in the future");
+ if (batt)
+ reason = 0;
} else if (fs->super->s_checkinterval &&
((ctx->now - lastcheck) >=
((time_t) fs->super->s_checkinterval))) {