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
This commit is contained in:
parent
c40487d49b
commit
6955543a88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366351
@ -45,7 +45,7 @@ require_fs() {
|
|||||||
|
|
||||||
# Begin FreeBSD
|
# Begin FreeBSD
|
||||||
if true; then
|
if true; then
|
||||||
if kldload -n ${name}; then
|
if kldstat -qm ${name} || kldload -n ${name}; then
|
||||||
found=yes
|
found=yes
|
||||||
else
|
else
|
||||||
found=no
|
found=no
|
||||||
|
Loading…
Reference in New Issue
Block a user