| 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 | { |
nothing calls this directly
no test coverage detected