mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2025-01-09 18:13:34 +08:00
Use ctx->filesystem_name if the ctx->device_name is NULL in e2fsck.
This commit is contained in:
parent
d37066a9fa
commit
6a50c5ed57
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user