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

Method parseMajorMinor

module/src/main/cpp/mountsinfo.cpp:198–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196 }
197
198 void parseMajorMinor(const std::string& mmstr) {
199 size_t sep = mmstr.find(':');
200 if (sep != std::string::npos) {
201 int major = std::stoi(mmstr.substr(0, sep));
202 int minor = std::stoi(mmstr.substr(sep + 1));
203 dev = makedev(major, minor);
204 } else {
205 dev = 0;
206 }
207 }
208};
209
210class MountRootResolver {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected