]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix multiple issues with the io tests
authorasomers <asomers@FreeBSD.org>
Tue, 25 Jun 2019 16:49:20 +0000 (16:49 +0000)
committerasomers <asomers@FreeBSD.org>
Tue, 25 Jun 2019 16:49:20 +0000 (16:49 +0000)
commitf133355dc103680a0b303a76ded853ddeeec6516
tree87be345466df3baea3a7c575028f4d94142b4af7
parent80723470e6633107663e5d16a6ae08900bcb1f49
fusefs: fix multiple issues with the io tests

* During TearDown, close the test file before the backing file.  That way
  the backing file artifact will have the correct contents after the test
  completes.  It doesn't matter when running in Kyua, but it may when
  running the test manually.
* Add a closeopen operation that mimics what FSX does with the "-c" option.
* Skip mmap-related tests when vfs.fusefs.data_cache_mode == 0

Sponsored by: The FreeBSD Foundation
tests/sys/fs/fusefs/io.cc