Changeset View
Changeset View
Standalone View
Standalone View
head/tests/sys/fs/fusefs/mockfs.cc
Show First 20 Lines • Show All 836 Lines • ▼ Show 20 Lines | if (res < 0 && !m_quit) { | ||||
m_quit = true; | m_quit = true; | ||||
} | } | ||||
ASSERT_TRUE(res >= static_cast<ssize_t>(sizeof(in.header)) || m_quit); | ASSERT_TRUE(res >= static_cast<ssize_t>(sizeof(in.header)) || m_quit); | ||||
/* | /* | ||||
* Inconsistently, fuse_in_header.len is the size of the entire | * Inconsistently, fuse_in_header.len is the size of the entire | ||||
* request,including header, even though fuse_out_header.len excludes | * request,including header, even though fuse_out_header.len excludes | ||||
* the size of the header. | * the size of the header. | ||||
*/ | */ | ||||
ASSERT_TRUE(res == static_cast<ssize_t>(sizeof(in.header.len)) || | ASSERT_TRUE(res == static_cast<ssize_t>(in.header.len) || m_quit); | ||||
m_quit); | |||||
} | } | ||||
void MockFS::write_response(const mockfs_buf_out &out) { | void MockFS::write_response(const mockfs_buf_out &out) { | ||||
fd_set writefds; | fd_set writefds; | ||||
pollfd fds[1]; | pollfd fds[1]; | ||||
int nready, nfds; | int nready, nfds; | ||||
ssize_t r; | ssize_t r; | ||||
Show All 39 Lines |