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

Method shared

src/linux/fs.cpp:376–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374
375
376Option<int> MountInfoTable::Entry::shared() const
377{
378 foreach (const string& token, strings::tokenize(optionalFields, " ")) {
379 if (strings::startsWith(token, "shared:")) {
380 Try<int> id = numify<int>(
381 strings::remove(token, "shared:", strings::PREFIX));
382
383 CHECK_SOME(id);
384 return id.get();
385 }
386 }
387
388 return None();
389}
390
391
392Option<int> MountInfoTable::Entry::master() const

Callers 15

TESTFunction · 0.45
TEST_FFunction · 0.45
foreachFunction · 0.45
foreachFunction · 0.45
createMethod · 0.45
foreachFunction · 0.45
createMethod · 0.45
foreachFunction · 0.45
foreachFunction · 0.45
ensureSharedMountFunction · 0.45
foreachFunction · 0.45
validateExecutorFunction · 0.45

Calls 1

NoneClass · 0.85

Tested by 3

TESTFunction · 0.36
TEST_FFunction · 0.36
foreachFunction · 0.36