GNOME Bugzilla – Bug 654563
info capplet: Failed to calculate disk space
Last modified: 2011-09-21 16:08:47 UTC
this report has been filed here: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/805504 "TEST CASE 1. Launch info control-center applet from a terminal $ gnome-control-center info Results: The Overview section is displayed and the 'Disk' information shows 'Calculating...' and never shows disk space. On the terminal the following warning is displayed: info-cc-panel-WARNING **: Failed to get filesystem free space for '/home/testuser/none': Error getting filesystem info: No such file or directory (testuser is the name of the user i'm logged in)"
Likely a glib bug. What's the content of /proc/mounts, /etc/mtab and /etc/fstab?
Files are available at: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/805504/+attachment/2205900/+files/mtab.txt https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/805504/+attachment/2205901/+files/fstab.txt https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/805504/+attachment/2205902/+files/mounts.txt Thanks!,
Bug in GIO's code that reads the Unix entry. g_unix_mount_get_mount_path() returns "none", instead of NULL for those entries.
David, did you want to look at fixing this ?
Created attachment 197063 [details] [review] gunixmounts: exempt entries with "none" mountpoint We ignore entries with mountpoint of "swap" and "ignore". Add "none" to that list, since Debian uses it. Probably we should move to using our already-existing internal list of things to ignore, but this patch is more minimally intrusive for now.
Created attachment 197067 [details] [review] info: continue on filesystem query info When calculating the total size of all filesystems, failure to query a single filesystem results in the iteration being cancelled and a "Calculating..." message being left on the UI. Instead, just ignore the filesystem that failed and move on to the next.
Review of attachment 197063 [details] [review]: LGTM
Review of attachment 197067 [details] [review]: I'm not a control-center developer but, sure, from a drive-by-shooting point, sounds like a good idea.
https://mail.gnome.org/archives/release-team/2011-September/msg00219.html
Got +2 from r-t, so both patches applied to both branches.