Date: Mon, 6 Jan 2020 21:14:27 +0000 (UTC) From: Kirk McKusick <mckusick@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org Subject: svn commit: r356427 - stable/12/sbin/fsck_ffs Message-ID: <202001062114.006LERon069981@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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().
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001062114.006LERon069981>