Use ctx->filesystem_name if the ctx->device_name is NULL in e2fsck.

This commit is contained in:
Theodore Ts'o 2001-12-21 23:29:35 -05:00
parent d37066a9fa
commit 6a50c5ed57
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2001-12-21 Theodore Tso <tytso@valinux.com>
* problem.c (fix_problem): Use ctx->filesystem_name if the
ctx->device_name is NULL.
* journal.c (e2fsck_check_ext3_journal): Give the opportunity to
run the journal even if recovery flag is cleared. If
we're using a backup superblock, run the journal by

View File

@ -1352,7 +1352,8 @@ int fix_problem(e2fsck_t ctx, problem_t code, struct problem_context *pctx)
if (!suppress) {
message = ptr->e2p_description;
if (ctx->options & E2F_OPT_PREEN) {
printf("%s: ", ctx->device_name);
printf("%s: ", ctx->device_name ?
ctx->device_name : ctx->filesystem_name);
#if 0
if (ptr->e2p_preen_msg)
message = ptr->e2p_preen_msg;