]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add fsck_flags config option
authorluporl <luporl@FreeBSD.org>
Wed, 18 Mar 2020 13:09:47 +0000 (13:09 +0000)
committerluporl <luporl@FreeBSD.org>
Wed, 18 Mar 2020 13:09:47 +0000 (13:09 +0000)
commit87b8d937c6df67309c3535921a9913d2e0d5a929
tree5bdebad215cba4a18861702b737f608b405f8890
parent2ec9fcbdbe2a38f0a140281277f95dcdeba00803
Add fsck_flags config option

On UFS with SU+J, sometimes fsck's default recovery from journal marks the
filesystem as clean but some errors remain.

With SU only, default fsck in preen mode sometimes thinks all errors have
been fixed but some still remain.

To address the issues above, this change adds a new config option:
fsck_flags.  By default it's set to -p, but the user may change it to -y
or -f -y, for instance, to force a full fsck after a system crash.

Submitted by: jhibbits@ (original version)
Reviewed by: mckusick
Differential Revision: https://reviews.freebsd.org/D24087
libexec/rc/rc.conf
libexec/rc/rc.d/fsck