MCPcopy Create free account
hub / github.com/MhmRdd/NoHello / getMountInfo

Function getMountInfo

module/src/main/cpp/mountsinfo.cpp:236–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234};
235
236std::vector<MountInfo> getMountInfo(const std::string& path = "/proc/self/mountinfo") {
237 std::ifstream mi(path);
238 std::vector<MountInfo> mounts;
239 std::string line;
240 if (!mi.is_open())
241 return mounts;
242 while (std::getline(mi, line)) {
243 MountInfo mountInfo(line);
244 mounts.emplace_back(std::move(mountInfo));
245 }
246 mi.close();
247 return mounts;
248}

Callers 2

preSpecializeMethod · 0.85
NoRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected