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

Method checkDiskUsage

src/slave/slave.cpp:7639–7647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7637
7638
7639void Slave::checkDiskUsage()
7640{
7641 // TODO(vinod): We are making usage a Future, so that we can plug in
7642 // fs::usage() into async.
7643 // NOTE: We calculate disk usage of the file system on which the
7644 // slave work directory is mounted.
7645 Future<double>(::fs::usage(flags.work_dir))
7646 .onAny(defer(self(), &Slave::_checkDiskUsage, lambda::_1));
7647}
7648
7649
7650void Slave::_checkDiskUsage(const Future<double>& usage)

Callers

nothing calls this directly

Calls 2

deferFunction · 0.85
usageFunction · 0.50

Tested by

no test coverage detected