]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tmpfs tests: check for built-in tmpfs module
authormhorne <mhorne@FreeBSD.org>
Fri, 2 Oct 2020 00:52:31 +0000 (00:52 +0000)
committermhorne <mhorne@FreeBSD.org>
Fri, 2 Oct 2020 00:52:31 +0000 (00:52 +0000)
commit8a6e5c12b67a490ab2aec4c27a85a448fdb973a3
tree45d4008b96ebb3f8a04c51ac8b5532500934c2ab
parent3ae5245dd9d51b903daa609e13fb276b62e96d40
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
contrib/netbsd-tests/fs/h_funcs.subr