]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: fix tests when data caching is disabled
authorasomers <asomers@FreeBSD.org>
Sat, 30 Mar 2019 00:35:59 +0000 (00:35 +0000)
committerasomers <asomers@FreeBSD.org>
Sat, 30 Mar 2019 00:35:59 +0000 (00:35 +0000)
commit056606403401b55b34792bfb5cf8b23b37dd9e29
tree9b605f2359299212d1eb747f06d66a27f880540b
parentff03f580c0f84ef274db806fc9ac526d9af72c39
fusefs: fix tests when data caching is disabled

VOP_GETPAGES is disabled when vfs.fusefs.data_cache_mode=0, causing mmap to
return success but accessing the mapped memory will subsequently segfault.

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