MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / getMetadata

Method getMetadata

lib/vfs/philefs.cc:178–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 }
177
178 std::map<std::string, std::string> getMetadata() override
179 {
180 mount();
181
182 std::string volumename = _rootBlock.reader().read(0x0c);
183 volumename = trimWhitespace(volumename);
184
185 std::map<std::string, std::string> attributes;
186 attributes[VOLUME_NAME] = volumename;
187 attributes[TOTAL_BLOCKS] = std::to_string(_totalBlocks);
188 attributes[USED_BLOCKS] = attributes[TOTAL_BLOCKS];
189 attributes[BLOCK_SIZE] = std::to_string(_config.block_size());
190 return attributes;
191 }
192
193 std::shared_ptr<Dirent> getDirent(const Path& path) override
194 {

Callers

nothing calls this directly

Calls 4

trimWhitespaceFunction · 0.85
to_stringFunction · 0.85
readerMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected