svn commit: r356427 - stable/12/sbin/fsck_ffs
Kirk McKusick
mckusick at FreeBSD.org
Mon Jan 6 21:14:27 UTC 2020
Author: mckusick
Date: Mon Jan 6 21:14:27 2020
New Revision: 356427
URL: https://svnweb.freebsd.org/changeset/base/356427
Log:
MFC of 356063
Do not ask to use journal in fsck_ffs if journal is out of date
Modified:
stable/12/sbin/fsck_ffs/main.c
stable/12/sbin/fsck_ffs/suj.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sbin/fsck_ffs/main.c
==============================================================================
--- stable/12/sbin/fsck_ffs/main.c Mon Jan 6 20:57:59 2020 (r356426)
+++ stable/12/sbin/fsck_ffs/main.c Mon Jan 6 21:14:27 2020 (r356427)
@@ -423,13 +423,11 @@ checkfilesys(char *filesys)
*/
if ((sblock.fs_flags & FS_SUJ) == FS_SUJ) {
if ((sblock.fs_flags & FS_NEEDSFSCK) != FS_NEEDSFSCK && skipclean) {
- if (preen || reply("USE JOURNAL")) {
- if (suj_check(filesys) == 0) {
- printf("\n***** FILE SYSTEM MARKED CLEAN *****\n");
- if (chkdoreload(mntp) == 0)
- exit(0);
- exit(4);
- }
+ if (suj_check(filesys) == 0) {
+ printf("\n***** FILE SYSTEM MARKED CLEAN *****\n");
+ if (chkdoreload(mntp) == 0)
+ exit(0);
+ exit(4);
}
printf("** Skipping journal, falling through to full fsck\n\n");
}
Modified: stable/12/sbin/fsck_ffs/suj.c
==============================================================================
--- stable/12/sbin/fsck_ffs/suj.c Mon Jan 6 20:57:59 2020 (r356426)
+++ stable/12/sbin/fsck_ffs/suj.c Mon Jan 6 21:14:27 2020 (r356427)
@@ -2709,6 +2709,8 @@ suj_check(const char *filesys)
printf("** SU+J Recovering %s\n", filesys);
if (suj_verifyino(jip) != 0)
return (-1);
+ if (!preen && !reply("USE JOURNAL"))
+ return (-1);
/*
* Build a list of journal blocks in jblocks before parsing the
* available journal blocks in with suj_read().
More information about the svn-src-all
mailing list