statvfs: permission denied on docker filesystems
Hello
Reports from downstream: https://github.com/mate-desktop/mate-applets/issues/230
In the source directory of libgtop, after running ./examples/df
, I get the following output:
$ ./examples/df |grep statvfs
glibtop(c=6191): [WARNING] statvfs '/var/lib/docker/overlay2/805a7181fc7ce1b3f26d4610e2b9c11738b9c67f31e2ae2d75ee7e' failed: Permission denied
glibtop(c=6191): [WARNING] statvfs '/var/lib/docker/containers/a1fca29d198ad64e5048a08a1320c9e5945c96dbbc1dd49a88c3' failed: Permission denied
glibtop(c=6191): [WARNING] statvfs '/run/docker/netns/3ca4bf92f6e8' failed: Permission denied
$ sudo ./examples/df |grep statvfs
glibtop(c=6208): [WARNING] statvfs '/var/lib/docker/overlay2/805a7181fc7ce1b3f26d4610e2b9c11738b9c67f31e2ae2d75ee7e' failed: No such file or directory
glibtop(c=6208): [WARNING] statvfs '/var/lib/docker/containers/a1fca29d198ad64e5048a08a1320c9e5945c96dbbc1dd49a88c3' failed: No such file or directory
All applications calling glibtop_get_fsusage_s
will display this warning on the machine running the docker service.