HomeFreeBSD

Add a new kernel config option, MD_ROOT_READONLY, which forces on the

Description

Add a new kernel config option, MD_ROOT_READONLY, which forces on the
MD_READONLY flag for the md device automatically instantiated during
kernel init for an mdroot filesystem.

Note that there is specifically and by design no tunable or sysctl
control over this feature. Without this option, you already have control
over whether the mdroot fs is writeable using vfs.root.mountfrom.options
from loader(8), the root_rw_mount rcvar, and by using "mount -u[rw] /"
or equivelent on the fly. This option is being added to provide a way
to make the mdroot fs truly immutable before userland code begins running.

Differential Revision: https://reviews.freebsd.org/D13411

Details

Provenance
ianAuthored on Dec 20 2017, 6:23 PM
Parents
rGc19c7afee3c8: ixgbe(4): Convert driver to use iflib
Branches
Unknown
Tags
Unknown

Event Timeline