fusefs: commit missing file from r347547

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Alan Somers 2019-05-13 19:48:57 +00:00
parent 4d09e76a73
commit c4fbda2b2c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/fuse2/; revision=347548

View File

@ -65,19 +65,6 @@ void expect_release(uint64_t ino, ProcessMockerT r)
).WillRepeatedly(Invoke(r));
}
void require_sync_resize_0() {
const char *sync_resize_node = "vfs.fusefs.sync_resize";
int val = 0;
size_t size = sizeof(val);
ASSERT_EQ(0, sysctlbyname(sync_resize_node, &val, &size, NULL, 0))
<< strerror(errno);
if (val != 0)
GTEST_SKIP() <<
"vfs.fusefs.sync_resize must be set to 0 for this test."
" That sysctl will probably be removed soon.";
}
};
class AioWrite: public Write {
@ -192,8 +179,6 @@ TEST_F(Write, append)
uint64_t initial_offset = m_maxbcachebuf;
int fd;
require_sync_resize_0();
expect_lookup(RELPATH, ino, initial_offset);
expect_open(ino, 0, 1);
expect_write(ino, initial_offset, BUFSIZE, BUFSIZE, 0, CONTENTS);