Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/fs/fusefs/utils.hh
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | enum cache_mode { | ||||
Writeback, | Writeback, | ||||
WritebackAsync | WritebackAsync | ||||
}; | }; | ||||
const char *cache_mode_to_s(enum cache_mode cm); | const char *cache_mode_to_s(enum cache_mode cm); | ||||
bool is_unsafe_aio_enabled(void); | bool is_unsafe_aio_enabled(void); | ||||
extern const uint32_t libfuse_max_write; | extern const uint32_t libfuse_max_write; | ||||
extern const uint32_t default_max_write; | |||||
class FuseTest : public ::testing::Test { | class FuseTest : public ::testing::Test { | ||||
protected: | protected: | ||||
uint32_t m_maxreadahead; | uint32_t m_maxreadahead; | ||||
uint32_t m_maxwrite; | uint32_t m_maxwrite; | ||||
uint32_t m_init_flags; | uint32_t m_init_flags; | ||||
bool m_allow_other; | bool m_allow_other; | ||||
bool m_default_permissions; | bool m_default_permissions; | ||||
uint32_t m_kernel_minor_version; | uint32_t m_kernel_minor_version; | ||||
enum poll_method m_pm; | enum poll_method m_pm; | ||||
bool m_push_symlinks_in; | bool m_push_symlinks_in; | ||||
bool m_ro; | bool m_ro; | ||||
bool m_async; | bool m_async; | ||||
bool m_noclusterr; | bool m_noclusterr; | ||||
bool m_nointr; | bool m_nointr; | ||||
unsigned m_time_gran; | unsigned m_time_gran; | ||||
MockFS *m_mock = NULL; | MockFS *m_mock = NULL; | ||||
const static uint64_t FH = 0xdeadbeef1a7ebabe; | const static uint64_t FH = 0xdeadbeef1a7ebabe; | ||||
public: | public: | ||||
int m_maxbcachebuf; | int m_maxbcachebuf; | ||||
int m_maxphys; | int m_maxphys; | ||||
FuseTest(): | FuseTest(): | ||||
m_maxreadahead(0), | m_maxreadahead(0), | ||||
m_maxwrite(default_max_write), | m_maxwrite(0), | ||||
m_init_flags(0), | m_init_flags(0), | ||||
m_allow_other(false), | m_allow_other(false), | ||||
m_default_permissions(false), | m_default_permissions(false), | ||||
m_kernel_minor_version(FUSE_KERNEL_MINOR_VERSION), | m_kernel_minor_version(FUSE_KERNEL_MINOR_VERSION), | ||||
m_pm(BLOCKING), | m_pm(BLOCKING), | ||||
m_push_symlinks_in(false), | m_push_symlinks_in(false), | ||||
m_ro(false), | m_ro(false), | ||||
m_async(false), | m_async(false), | ||||
▲ Show 20 Lines • Show All 166 Lines • Show Last 20 Lines |