OSDN Git Service

e2fsck: print a notice when we've started suppressing a problem code
authorTheodore Ts'o <tytso@mit.edu>
Fri, 16 Mar 2012 15:55:24 +0000 (11:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Mar 2012 16:00:17 +0000 (12:00 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/problem.c

index 53e8e11..7d5b10d 100644 (file)
@@ -1868,6 +1868,11 @@ int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx)
                if ((ptr->flags & PR_LATCH_MASK) &&
                    (ldesc->flags & (PRL_YES | PRL_NO)))
                        suppress++;
+               if (ptr->count == ptr->max_count + 1) {
+                       printf("...problem 0x%06x suppressed\n",
+                              ptr->e2p_code);
+                       fflush(stdout);
+               }
        }
        if (!suppress) {
                message = ptr->e2p_description;