diff options
-rw-r--r-- | src/osx/btop_collect.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osx/btop_collect.cpp b/src/osx/btop_collect.cpp index 0db60e0..7460fb9 100644 --- a/src/osx/btop_collect.cpp +++ b/src/osx/btop_collect.cpp @@ -536,7 +536,11 @@ namespace Mem { IORegistryEntryGetParentEntry(drive, kIOServicePlane, &volumeRef); if (volumeRef) { if (!isWhole(volumeRef)) { + string bsdName = getCFString(volumeRef, CFSTR("BSD Name")); string device = getCFString(volumeRef, CFSTR("VolGroupMntFromName")); + if (!mapping.contains(device)) { + device = "/dev/" + bsdName; // try again with BSD name - not all volumes seem to have VolGroupMntFromName property + } if (device != "") { if (mapping.contains(device)) { string mountpoint = mapping.at(device); |