]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
tmpfs tests: check for built-in tmpfs module
authorMitchell Horne <mhorne@FreeBSD.org>
Fri, 2 Oct 2020 00:52:31 +0000 (00:52 +0000)
committerMitchell Horne <mhorne@FreeBSD.org>
Fri, 2 Oct 2020 00:52:31 +0000 (00:52 +0000)
commit6955543a8897fd94bf62db1099798f68e323001a
tree45d4008b96ebb3f8a04c51ac8b5532500934c2ab
parentc40487d49bde43806672a0917a7ccc5d1e6301fd
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