linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tune2fs: fix an error message
@ 2022-09-23 13:25 Lubomir Rintel
  0 siblings, 0 replies; only message in thread
From: Lubomir Rintel @ 2022-09-23 13:25 UTC (permalink / raw)
  To: Theodore Ts'o; +Cc: linux-ext4, Lubomir Rintel

  $ 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>
---
 misc/tune2fs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/tune2fs.c b/misc/tune2fs.c
index 088f87e5..c85737ad 100644
--- a/misc/tune2fs.c
+++ b/misc/tune2fs.c
@@ -3343,7 +3343,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);
 			rc = 1;
 			goto closefs;
 		}
-- 
2.37.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-23 13:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-23 13:25 [PATCH] tune2fs: fix an error message Lubomir Rintel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).