HomeFreeBSD

Add `kern.features.witness`

Description

Add kern.features.witness

Adding kern.features.witness helps expose whether or not the kernel has
options WITNESS enabled, so the feature_present(3) API can be used
to query whether or not witness(9) is built into the kernel.

This support is helpful with userspace applications (generally speaking,
tests), as it can be queried to determine whether or not tests related
to WITNESS should be run.

MFC after: 1 week
Reviewed by: cem, darrick.freebsd_gmail.com
Differential Revision: https://reviews.freebsd.org/D25302
Sponsored by: DellEMC Isilon

Conflicts:
sys/kern/subr_witness.c

(cherry picked from commit d6701b6c8ccf35c66d357fe02494d0f60ee62f4e)

Details

Provenance
ngieAuthored on Jun 24 2020, 6:51 PM
Reviewer
cem
Differential Revision
D25302: Add `kern.features.witness`
Parents
rG368552395021: Don't leave `path` behind when executing `:chflags_success`
Branches
Unknown
Tags
Unknown