[gnome-disk-utility] Don't warn if statvfs(3) fails



commit 57b1df09226d2701dc7f491cf346b0850ed83805
Author: David Zeuthen <zeuthen gmail com>
Date:   Wed Jan 9 13:03:30 2013 -0500

    Don't warn if statvfs(3) fails
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 src/libgdu/gduutils.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libgdu/gduutils.c b/src/libgdu/gduutils.c
index d3d1498..0e39323 100644
--- a/src/libgdu/gduutils.c
+++ b/src/libgdu/gduutils.c
@@ -1048,11 +1048,11 @@ gdu_utils_get_unused_for_block (UDisksClient *client,
   if (mount_points == NULL || mount_points[0] == NULL)
     goto out;
 
+  /* Don't warn, could be the filesystem is mounted in a place we have no
+   * permission to look at
+   */
   if (statvfs (mount_points[0], &statvfs_buf) != 0)
-    {
-      g_warning ("Error calling statvfs on path %s: %m", mount_points[0]);
-      goto out;
-    }
+    goto out;
 
   ret = ((gint64) statvfs_buf.f_bfree) * ((gint64) statvfs_buf.f_bsize);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]