--- libgtop2-2.30.0.is.2.30.0.orig/sysdeps/linux/fsusage.c 2014-04-28 17:09:24.000000000 -0400 +++ libgtop2-2.30.0.is.2.30.0/sysdeps/linux/fsusage.c 2014-11-09 17:43:00.525306401 -0500 @@ -17,7 +17,7 @@ #include #include #include - +#include /* * Linux 2.6.x @@ -48,6 +48,13 @@ if (!strcmp(mountpoint, mnt->mnt_dir)) { if (!strncmp(mnt->mnt_fsname, "/dev/", 5)) { + if(!strncmp(mnt->mnt_fsname, "/dev/disk/", 10)) { + char *realdev = realpath(mnt->mnt_fsname, NULL); + g_strlcpy(device, realdev + 5, device_size); + found = TRUE; + break; + } + g_strlcpy(device, mnt->mnt_fsname + 5, device_size); found = TRUE; } @@ -67,6 +74,9 @@ static gboolean is_partition(const char* device, char* prefix, size_t prefix_size) { + if(!strncmp(device, "md", 2)) + return FALSE; + g_strlcpy(prefix, device, prefix_size); for ( ; *prefix; prefix++) {