MCPcopy Create free account
hub / github.com/deepseek-ai/3FS / getFileSystemUUIDOnce

Function getFileSystemUUIDOnce

src/common/utils/SysResource.cc:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86static Result<std::map<unsigned long, std::string>> getFileSystemUUIDOnce() {
87 auto diskInfoResult = SysResource::scanDiskInfo();
88 RETURN_AND_LOG_ON_ERROR(diskInfoResult);
89 std::map<unsigned long, std::string> deviceIdToDevicePath;
90 for (auto &info : *diskInfoResult) {
91 deviceIdToDevicePath[info.deviceId] = info.uuid;
92 }
93 return deviceIdToDevicePath;
94}
95
96Result<std::map<unsigned long, std::string>> SysResource::fileSystemUUID(bool force) {
97 if (force) {

Callers 1

fileSystemUUIDMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected