From 52734dc532c970b07de7a33d761a44f322bc51f3 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 15 Mar 2003 04:03:43 -0500 Subject: [PATCH] Don't display progress bar when rebuilding directories unless explicitly requested by the user. --- e2fsck/rehash.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/e2fsck/rehash.c b/e2fsck/rehash.c index 9c185b4..d048003 100644 --- a/e2fsck/rehash.c +++ b/e2fsck/rehash.c @@ -807,8 +807,9 @@ void e2fsck_rehash_directories(e2fsck_t ctx) end_problem_latch(ctx, PR_LATCH_OPTIMIZE_DIR); fix_problem(ctx, PR_3A_OPTIMIZE_DIR_ERR, &pctx); } - e2fsck_simple_progress(ctx, "Rebuilding directory", - (float) (++cur) / (float) max, ino); + if (ctx->progress && !ctx->progress_fd) + e2fsck_simple_progress(ctx, "Rebuilding directory", + (float) (++cur) / (float) max, ino); } end_problem_latch(ctx, PR_LATCH_OPTIMIZE_DIR); if (!all_dirs) -- 1.8.3.1