svn commit: r345721 - projects/fuse2/tests/sys/fs/fusefs
Alan Somers
asomers at FreeBSD.org
Sat Mar 30 00:54:03 UTC 2019
Author: asomers
Date: Sat Mar 30 00:54:01 2019
New Revision: 345721
URL: https://svnweb.freebsd.org/changeset/base/345721
Log:
fusefs: fix more tests when data caching is disabled
readahead is also disallowed when data_cache_mode=0. This should've been
part of r345720.
Sponsored by: The FreeBSD Foundation
Modified:
projects/fuse2/tests/sys/fs/fusefs/read.cc
Modified: projects/fuse2/tests/sys/fs/fusefs/read.cc
==============================================================================
--- projects/fuse2/tests/sys/fs/fusefs/read.cc Sat Mar 30 00:35:59 2019 (r345720)
+++ projects/fuse2/tests/sys/fs/fusefs/read.cc Sat Mar 30 00:54:01 2019 (r345721)
@@ -78,7 +78,7 @@ class AsyncRead: public AioRead {
}
};
-class ReadMmap: public Read {
+class ReadCacheable: public Read {
public:
virtual void SetUp() {
const char *node = "vfs.fusefs.data_cache_mode";
@@ -95,7 +95,7 @@ virtual void SetUp() {
}
};
-class ReadAhead: public Read, public WithParamInterface<uint32_t> {
+class ReadAhead: public ReadCacheable, public WithParamInterface<uint32_t> {
virtual void SetUp() {
m_maxreadahead = GetParam();
Read::SetUp();
@@ -467,7 +467,7 @@ TEST_F(Read, keep_cache_disabled)
/* Deliberately leak fd0 and fd1. */
}
-TEST_F(ReadMmap, mmap)
+TEST_F(ReadCacheable, mmap)
{
const char FULLPATH[] = "mountpoint/some_file.txt";
const char RELPATH[] = "some_file.txt";
@@ -600,7 +600,7 @@ TEST_F(Read, read)
}
/* If the filesystem allows it, the kernel should try to readahead */
-TEST_F(Read, default_readahead)
+TEST_F(ReadCacheable, default_readahead)
{
const char FULLPATH[] = "mountpoint/some_file.txt";
const char RELPATH[] = "some_file.txt";
@@ -638,7 +638,7 @@ TEST_F(Read, default_readahead)
}
/* Reading with sendfile should work (though it obviously won't be 0-copy) */
-TEST_F(ReadMmap, sendfile)
+TEST_F(ReadCacheable, sendfile)
{
const char FULLPATH[] = "mountpoint/some_file.txt";
const char RELPATH[] = "some_file.txt";
@@ -685,7 +685,7 @@ TEST_F(ReadMmap, sendfile)
/* sendfile should fail gracefully if fuse declines the read */
/* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236466 */
-TEST_F(ReadMmap, DISABLED_sendfile_eio)
+TEST_F(ReadCacheable, DISABLED_sendfile_eio)
{
const char FULLPATH[] = "mountpoint/some_file.txt";
const char RELPATH[] = "some_file.txt";
More information about the svn-src-projects
mailing list