MCPcopy Create free account
hub / github.com/apple/foundationdb / statfs

Class statfs

flow/Platform.actor.cpp:600–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598 uint64_t blockSize = buf.f_frsize;
599#elif defined(__APPLE__)
600 struct statfs buf;
601 if (statfs(directory.c_str(), &buf)) {
602 Error e = systemErrorCodeToError();
603 TraceEvent(SevError, "GetDiskBytesStatfsError").error(e).detail("Directory", directory).GetLastError();

Callers 2

getDiskBytesFunction · 0.85
getDiskStatisticsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected