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

Function foreach

src/linux/fs.cpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 hashmap<int, vector<MountInfoTable::Entry>> parentToChildren;
200
201 foreach (const MountInfoTable::Entry& entry, table.entries) {
202 if (entry.target == "/") {
203 CHECK_NONE(rootParentId);
204 rootParentId = entry.parent;
205 }
206 parentToChildren[entry.parent].push_back(entry);
207 }
208
209 // Walk the hashmap and construct a list of entries sorted
210 // hierarchically. The recursion eventually terminates because

Callers

nothing calls this directly

Calls 12

startsWithFunction · 0.85
ErrnoErrorClass · 0.85
WSUCCEEDEDFunction · 0.85
WSTRINGIFYFunction · 0.85
removeFunction · 0.70
unmountFunction · 0.70
joinFunction · 0.50
spawnFunction · 0.50
ErrorFunction · 0.50
getMethod · 0.45
isErrorMethod · 0.45
isNoneMethod · 0.45

Tested by

no test coverage detected