MCPcopy Create free account
hub / github.com/apache/mesos / type

Function type

src/linux/fs.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131
132
133Try<uint32_t> type(const string& path)
134{
135 struct statfs buf;
136 if (statfs(path.c_str(), &buf) < 0) {
137 return ErrnoError();
138 }
139 return (uint32_t) buf.f_type;
140}
141
142
143Try<string> typeName(uint32_t fsType)

Callers 12

is_validMethod · 0.85
crtMethod · 0.85
WindowsFDClass · 0.85
assign_iocpMethod · 0.85
test_execMethod · 0.85
test_exec_exit_statusMethod · 0.85
test_exec_interactiveMethod · 0.85
test_listMethod · 0.85
test_list_allMethod · 0.85
test_listMethod · 0.85
TEST_FFunction · 0.85
validateBackendFunction · 0.85

Calls 2

statfsClass · 0.85
ErrnoErrorClass · 0.85

Tested by 7

test_execMethod · 0.68
test_exec_exit_statusMethod · 0.68
test_exec_interactiveMethod · 0.68
test_listMethod · 0.68
test_list_allMethod · 0.68
test_listMethod · 0.68
TEST_FFunction · 0.68