]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fuse(4) use a global environment check.
authorasomers <asomers@FreeBSD.org>
Sat, 2 Mar 2019 16:28:29 +0000 (16:28 +0000)
committerasomers <asomers@FreeBSD.org>
Sat, 2 Mar 2019 16:28:29 +0000 (16:28 +0000)
commitf739143479ab4a0b8d02d570d2a2e96b9d8bced5
treeed77db02b4cb68cfa1e4a4831562496559a066c9
parentcc246d5338fd04ad2e6d69546a4d64d11bac5886
fuse(4) use a global environment check.

This is marginally faster than using an environment check in each test case.
Also, if the global check fails then all of the tests are skipped.  Oddly,
it's not possible to skip a test in any other way.

Also, allow the test to run as a normal user if vfs.usermount=1 and
/dev/fuse is accessible.

Reported by: ngie
Sponsored by: The FreeBSD Foundation
tests/sys/fs/fuse/Makefile
tests/sys/fs/fuse/utils.cc
tests/sys/fs/fuse/utils.hh