multiload applet: fsusage check on /run causes excessive warnings printed
The multiload applet is printing error messages to the journal with a frequency of 4 messages per second:
May 26 09:13:06 earth gnome-panel.desktop[4009]: glibtop(c=4009): [WARNING] statvfs '/run/docker/netns/fa82befa4b8f' failed: Permission denied
The frequency depends on the configured system monitor update interval which defaults to 500ms.
I tracked the problem to the following code section in gnome-applets/multiload/linux-proc.c
:
for (i = 0; i < mountlist.number; i++)
{
glibtop_fsusage fsusage;
if (strcmp(mountentries[i].type, "smbfs") == 0
|| strcmp(mountentries[i].type, "nfs") == 0
|| strcmp(mountentries[i].type, "cifs") == 0)
continue;
glibtop_get_fsusage(&fsusage, mountentries[i].mountdir); // <-- this causes the log message if mountdir is not readable
read += fsusage.read; write += fsusage.write;
}
We should probably exclue /run from the list of checked mount points.
Edited by Sebastian Geiger