Don't display progress bar when rebuilding directories unless

explicitly requested by the user.
This commit is contained in:
Theodore Ts'o 2003-03-15 04:03:43 -05:00
parent 0926668d3a
commit 52734dc532

View File

@ -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)