mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Return volume names correctly.
This commit is contained in:
@@ -164,7 +164,7 @@ std::string tohex(const std::string& s)
|
||||
if ((b >= 32) && (b <= 126))
|
||||
ss << (char)b;
|
||||
else
|
||||
ss << fmt::format("%{:2x}", b);
|
||||
ss << fmt::format("%{:02x}", b);
|
||||
}
|
||||
|
||||
return ss.str();
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
Directory dir(this);
|
||||
|
||||
std::map<std::string, std::string> attributes;
|
||||
attributes[VOLUME_NAME] = "";
|
||||
attributes[VOLUME_NAME] = dir.volumeName;
|
||||
attributes[TOTAL_BLOCKS] = fmt::format("{}", getLogicalSectorCount());
|
||||
attributes[USED_BLOCKS] = fmt::format("{}", dir.usedSectors);
|
||||
attributes[BLOCK_SIZE] = "256";
|
||||
|
||||
Reference in New Issue
Block a user