tune2fs: tell the user that e2fsck -f is required

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>
next
Theodore Ts'o 2016-08-31 22:53:07 -04:00
parent c4d54aa2f7
commit 4d4335323e
5 changed files with 7 additions and 7 deletions

View 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);

View File

@ -11,7 +11,7 @@ Writing superblocks and filesystem accounting information: done
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.

View 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.

View 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.

View 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.