diff --git a/ksysguardd/Linux/diskstat.c b/ksysguardd/Linux/diskstat.c --- a/ksysguardd/Linux/diskstat.c +++ b/ksysguardd/Linux/diskstat.c @@ -181,16 +181,18 @@ * either a dummy file system or a network file system. * Add special handling for smbfs and cifs as is done by * coreutils as well. + * + * Explicitely allow tmpfs */ - if ( (mnt_info->mnt_fsname[0] != '/') || - !strcmp( mnt_info->mnt_type, "smbfs" ) || - !strcmp( mnt_info->mnt_type, "cifs" ) || - !strcmp( mnt_info->mnt_type, "proc" ) || - !strcmp( mnt_info->mnt_type, "devfs" ) || - !strcmp( mnt_info->mnt_type, "usbfs" ) || - !strcmp( mnt_info->mnt_type, "sysfs" ) || - !strcmp( mnt_info->mnt_type, "tmpfs" ) || - !strcmp( mnt_info->mnt_type, "devpts" ) ) + if ( strcmp( mnt_info->mnt_type, "tmpfs" ) && ( + (mnt_info->mnt_fsname[0] != '/') || + !strcmp( mnt_info->mnt_type, "smbfs" ) || + !strcmp( mnt_info->mnt_type, "cifs" ) || + !strcmp( mnt_info->mnt_type, "proc" ) || + !strcmp( mnt_info->mnt_type, "devfs" ) || + !strcmp( mnt_info->mnt_type, "usbfs" ) || + !strcmp( mnt_info->mnt_type, "sysfs" ) || + !strcmp( mnt_info->mnt_type, "devpts" ) )) continue; /* Skip these file systems */ if ( ( disk_info = (DiskInfo *)malloc( sizeof( DiskInfo ) ) ) == NULL )