]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r331015:
authordab <dab@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 19 Mar 2018 17:38:35 +0000 (17:38 +0000)
committerdab <dab@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 19 Mar 2018 17:38:35 +0000 (17:38 +0000)
commitd0c5edb935d8263dbb000edc103266959ecbcb6f
treef927ae490bd81dc25703c50962d7985f33aef170
parentfc3c79ae3c939fbe6afb4f2a85cf9c39f6f8a7c2
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@331217 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
etc/rc.d/fsck