Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2018 17:38:35 +0000 (UTC)
From:      David Bright <dab@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r331217 - stable/10/etc/rc.d
Message-ID:  <201803191738.w2JHcZMp023699@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dab
Date: Mon Mar 19 17:38:35 2018
New Revision: 331217
URL: https://svnweb.freebsd.org/changeset/base/331217

Log:
  MFC r331015:
  
  Modify rc.d/fsck to handle new status from fsck/fsck_ffs
  
  r328013 introduced a new error code from fsck_ffs that indicates that
  it could not completely fix the file system; this happens when it
  prints the message PLEASE RERUN FSCK. However, this status can happen
  when fsck is run in "preen" mode and the rc.d/fsck script does not
  handle that error code. Modify rc.d/fsck so that if "fsck -p"
  ("preen") returns the new status code (16) it will run "fsck -y", as
  it currently does for a status code of 8 (the "standard error exit").
  
  Reported by:    markj
  Sponsored by:   Dell EMC

Modified:
  stable/10/etc/rc.d/fsck
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/etc/rc.d/fsck
==============================================================================
--- stable/10/etc/rc.d/fsck	Mon Mar 19 17:37:51 2018	(r331216)
+++ stable/10/etc/rc.d/fsck	Mon Mar 19 17:38:35 2018	(r331217)
@@ -42,7 +42,7 @@ fsck_start()
 			echo "Reboot failed; help!"
 			stop_boot
 			;;
-		8)
+		8|16)
 			if checkyesno fsck_y_enable; then
 				echo "File system preen failed, trying fsck -y ${fsck_y_flags}"
 				fsck -y ${fsck_y_flags}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803191738.w2JHcZMp023699>