HomeFreeBSD

tmpfs tests: check for built-in tmpfs module

Description

tmpfs tests: check for built-in tmpfs module

As of r363471, tmpfs is included in all GENERIC kernel configs. This
results in a warning being emitted for each call to kldload(8):

module_register: cannot register tmpfs from tmpfs.ko; already loaded from kernel

Check for the presence of the module via kldstat first to quiet this
warning.

Reviewed by: asomers, arichardson
Differential Revision: https://reviews.freebsd.org/D26632

Details

Provenance
mhorneAuthored on
Reviewer
asomers
Differential Revision
D26632: Check for built-in tmpfs module
Parents
rS366350: OpenZFS: MFV 2.0-rc3-gfc5966
Branches
Unknown
Tags
Unknown