Changeset View
Changeset View
Standalone View
Standalone View
tests/sys/fs/fusefs/cache.cc
Show First 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | switch (cache_mode) { | ||||
case Writeback: | case Writeback: | ||||
m_init_flags |= FUSE_WRITEBACK_CACHE; | m_init_flags |= FUSE_WRITEBACK_CACHE; | ||||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||||
case Writethrough: | case Writethrough: | ||||
break; | break; | ||||
default: | default: | ||||
FAIL() << "Unknown cache mode"; | FAIL() << "Unknown cache mode"; | ||||
} | } | ||||
m_noatime = true; // To prevent SETATTR for atime on close | |||||
FuseTest::SetUp(); | FuseTest::SetUp(); | ||||
if (IsSkipped()) | if (IsSkipped()) | ||||
return; | return; | ||||
} | } | ||||
void expect_getattr(uint64_t ino, int times, uint64_t size, uint64_t attr_valid) | void expect_getattr(uint64_t ino, int times, uint64_t size, uint64_t attr_valid) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 134 Lines • Show Last 20 Lines |