gnome-utils r8040 - in trunk/baobab: . src
- From: marzocca svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-utils r8040 - in trunk/baobab: . src
- Date: Mon, 1 Sep 2008 16:38:47 +0000 (UTC)
Author: marzocca
Date: Mon Sep 1 16:38:47 2008
New Revision: 8040
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8040&view=rev
Log:
skip gvfs fuse mounts
Modified:
trunk/baobab/ChangeLog
trunk/baobab/src/baobab-prefs.c
Modified: trunk/baobab/src/baobab-prefs.c
==============================================================================
--- trunk/baobab/src/baobab-prefs.c (original)
+++ trunk/baobab/src/baobab-prefs.c Mon Sep 1 16:38:47 2008
@@ -262,7 +262,9 @@
glibtop_mountlist mountlist;
glibtop_mountentry *mountentry, *mountentry_tofree;
guint64 fstotal, fsavail;
+ gchar *dot_gvfs;
+ dot_gvfs = g_build_filename (g_get_home_dir (), ".gvfs", NULL);
mountentry_tofree = glibtop_get_mountlist (&mountlist, 0);
for (lo = 0, mountentry = mountentry_tofree; lo < mountlist.number;
@@ -273,6 +275,11 @@
GFile *file;
gchar *uri;
+
+ /* FIXME: skip gvfs fuse mounts... see baobab-scan.c for details */
+ if (dot_gvfs != NULL && mountentry->mountdir != NULL && strcmp (dot_gvfs, mountentry->mountdir) == 0)
+ continue;
+
glibtop_get_fsusage (&fsusage, mountentry->mountdir);
fstotal = fsusage.blocks * fsusage.block_size;
fsavail = fsusage.bfree * fsusage.block_size;
@@ -296,6 +303,7 @@
g_object_unref(file);
}
+ g_free (dot_gvfs);
g_free (mountentry_tofree);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]