1From 6695555e50a374f897965300568253f242a0b13b Mon Sep 17 00:00:00 2001 2From: Lubomir Rintel <lkundrak@v3.sk> 3Date: Fri, 23 Sep 2022 15:25:48 +0200 4Subject: tune2fs: fix an error message 5 6 $ tune2fs -O ^has_journal -ff /dev/sdh2 7 Recovering journal. tune2fs: Unknown code ____ 251 while recovering journal. 8 9 Before: Please run e2fsck -fy -O. 10 After: Please run e2fsck -fy /dev/sdh2. 11 12Note this doesn't fix the "Unknown code" message, just the "Please run 13e2fsck" one. 14 15Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> 16Signed-off-by: Theodore Ts'o <tytso@mit.edu> 17--- 18 misc/tune2fs.c | 2 +- 19 1 file changed, 1 insertion(+), 1 deletion(-) 20 21diff --git a/misc/tune2fs.c b/misc/tune2fs.c 22index f566ed81..f3ce443c 100644 23--- a/misc/tune2fs.c 24+++ b/misc/tune2fs.c 25@@ -3105,7 +3105,7 @@ _("Warning: The journal is dirty. You may wish to replay the journal like:\n\n" 26 if (retval) { 27 com_err("tune2fs", retval, 28 "while recovering journal.\n"); 29- printf(_("Please run e2fsck -fy %s.\n"), argv[1]); 30+ printf(_("Please run e2fsck -fy %s.\n"), device_name); 31 if (!fs) 32 exit(1); 33 rc = 1; 34-- 35cgit 36 37