Whamcloud - gitweb
tune2fs: tell the user that e2fsck -f is required
authorTheodore Ts'o <tytso@mit.edu>
Thu, 1 Sep 2016 02:53:07 +0000 (22:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 1 Sep 2016 05:01:53 +0000 (01:01 -0400)
The message requesting that the user run e2fsck doesn't include the -f
option, and this is needed to force a file system check.

Addresses-Debian-Bug: #828022

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c
tests/t_dangerous/expect
tests/t_enable_mcsum/expect
tests/t_enable_mcsum_initbg/expect
tests/t_iexpand_mcsum/expect

index d27d94b..09e65ba 100644 (file)
@@ -116,9 +116,9 @@ struct blk_move {
 
 errcode_t ext2fs_run_ext3_journal(ext2_filsys *fs);
 
-static const char *please_fsck = N_("Please run e2fsck on the filesystem.\n");
+static const char *please_fsck = N_("Please run e2fsck -f on the filesystem.\n");
 static const char *please_dir_fsck =
-               N_("Please run e2fsck -D on the filesystem.\n");
+               N_("Please run e2fsck -fD on the filesystem.\n");
 
 #ifdef CONFIG_BUILD_FINDFS
 void do_findfs(int argc, char **argv);
index 353bd57..0b33f3b 100644 (file)
@@ -11,7 +11,7 @@ Writing superblocks and filesystem accounting information:      \b\b\b\b\bdone
 
 tune2fs -O metadata_csum test.img
 
-Please run e2fsck on the filesystem.
+Please run e2fsck -f on the filesystem.
 
 Exit status is 1
 tune2fs -O metadata_csum test.img
@@ -57,7 +57,7 @@ Exit status is 0
 tune2fs -O metadata_csum test.img
 Enabling checksums could take some time.
 Proceed anyway (or wait 5 seconds) ? (y,n) 
-Please run e2fsck -D on the filesystem.
+Please run e2fsck -fD on the filesystem.
 
 Exit status is 0
 test_filesys was not cleanly unmounted, check forced.
index 2ee3c27..5a1a33a 100644 (file)
@@ -18,7 +18,7 @@ Pass 5: Checking group summary information
 Exit status is 0
 tune2fs -O metadata_csum test.img
 
-Please run e2fsck -D on the filesystem.
+Please run e2fsck -fD on the filesystem.
 
 Exit status is 0
 test_filesys was not cleanly unmounted, check forced.
index d3b4444..ed4774c 100644 (file)
@@ -18,7 +18,7 @@ Pass 5: Checking group summary information
 Exit status is 0
 tune2fs -O metadata_csum test.img
 
-Please run e2fsck -D on the filesystem.
+Please run e2fsck -fD on the filesystem.
 
 Exit status is 0
 test_filesys was not cleanly unmounted, check forced.
index 2a6d705..0ebf162 100644 (file)
@@ -19,7 +19,7 @@ Exit status is 0
 tune2fs -I 256 -O metadata_csum test.img
 Setting inode size 256
 
-Please run e2fsck -D on the filesystem.
+Please run e2fsck -fD on the filesystem.
 
 Exit status is 0
 Backing up journal inode block information.