HomeFreeBSD

newfs: warn if newer than kernel

Description

newfs: warn if newer than kernel

Creating a UFS filesystem with a newfs newer than the running kernel,
and then mounting that filesystem, can lead to interesting failures.

Add a safety belt to explicitly warn when newfs is newer than the
running kernel.

Reviewed by: gjb, jhb, mckusick
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D12765

Details

Provenance
emasteAuthored on
Reviewer
gjb
Differential Revision
D12765: newfs: warn if newer than kernel
Parents
rS325859: Sort pkgbase mtree metadata, for reproducible builds
Branches
Unknown
Tags
Unknown