+2009-01-19 henry <[email protected]>
authorhenryz
Mon, 19 Jan 2009 12:05:18 +0000
changeset 14931 6f64583d03f6
parent 14930 6d4ce2628aa1
child 14932 e250b06d716c
+2009-01-19 henry <[email protected]> + + * patches/gnome-system-monitor-03-zfs.diff: + Add the patch file to patches/ +
ChangeLog
patches/gnome-system-monitor-03-zfs.diff
--- a/ChangeLog	Mon Jan 19 10:44:57 2009 +0000
+++ b/ChangeLog	Mon Jan 19 12:05:18 2009 +0000
@@ -1,3 +1,8 @@
+2009-01-19  henry  <[email protected]>
+
+	* patches/gnome-system-monitor-03-zfs.diff:
+           Add the patch file to patches/
+
 2009-01-19  Takao Fujiwara  <[email protected]>
 
 	* patches/nautilus-09-trusted-extensions.diff:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/gnome-system-monitor-03-zfs.diff	Mon Jan 19 12:05:18 2009 +0000
@@ -0,0 +1,23 @@
+--- gnome-system-monitor-2.18.2/src/sysinfo.cpp	2008-01-21 22:32:35.727999000 +0800
++++ gnome-system-monitor-2.18.2.mod/src/sysinfo.cpp	2008-11-27 19:47:24.963170000 +0800
+@@ -92,6 +92,12 @@ namespace {
+ 
+     void load_disk_info()
+     {
++       glibtop_fsusage usage;
++
++       /* Now opensolaris is using ZFS, so we check / is ok */
++       glibtop_get_fsusage(&usage, "/");
++       this->free_space_bytes = usage.bavail * usage.block_size;
++/*
+       glibtop_mountentry *entries;
+       glibtop_mountlist mountlist;
+ 
+@@ -113,6 +119,7 @@ namespace {
+       }
+ 
+       g_free(entries);
++*/
+     }
+ 
+