aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2022-09-23 15:25:48 +0200
committerTheodore Ts'o <tytso@mit.edu>2022-10-20 13:16:16 -0400
commit6695555e50a374f897965300568253f242a0b13b (patch)
treecb86dfeca01df2dcc976e57b951809a9269b1c49
parent47ab1faccb228e10869898c8a02b06f5a91a9174 (diff)
downloade2fsprogs-6695555e50a374f897965300568253f242a0b13b.tar.gz
tune2fs: fix an error message
$ tune2fs -O ^has_journal -ff /dev/sdh2 Recovering journal. tune2fs: Unknown code ____ 251 while recovering journal. Before: Please run e2fsck -fy -O. After: Please run e2fsck -fy /dev/sdh2. Note this doesn't fix the "Unknown code" message, just the "Please run e2fsck" one. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r--misc/tune2fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index f566ed814..f3ce443ca 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -3105,7 +3105,7 @@ _("Warning: The journal is dirty. You may wish to replay the journal like:\n\n"
if (retval) {
com_err("tune2fs", retval,
"while recovering journal.\n");
- printf(_("Please run e2fsck -fy %s.\n"), argv[1]);
+ printf(_("Please run e2fsck -fy %s.\n"), device_name);
if (!fs)
exit(1);
rc = 1;