diff --git a/ksysguardd/Linux/diskstat.c b/ksysguardd/Linux/diskstat.c --- a/ksysguardd/Linux/diskstat.c +++ b/ksysguardd/Linux/diskstat.c @@ -213,6 +213,7 @@ * coreutils as well. */ if ( (mnt_info->mnt_fsname[0] != '/') || + !strncmp( mnt_info->mnt_fsname, "/dev/loop", 9 ) || !strcmp( mnt_info->mnt_type, "smbfs" ) || !strcmp( mnt_info->mnt_type, "cifs" ) || !strcmp( mnt_info->mnt_type, "proc" ) || diff --git a/ksysguardd/Linux/diskstats.c b/ksysguardd/Linux/diskstats.c --- a/ksysguardd/Linux/diskstats.c +++ b/ksysguardd/Linux/diskstats.c @@ -215,6 +215,10 @@ return -1; } devname[DISKDEVNAMELEN-1] = 0; + + if (!strncmp(devname, "/dev/loop", 9)) { + return -1; + } last = 0; ptr = DiskIO;