Blob Blame Raw
From 2bce9f36bd365be284c10af6a1f74c6120adc3e8 Mon Sep 17 00:00:00 2001
From: David Zeuthen <davidz@redhat.com>
Date: Wed, 15 Apr 2009 11:33:36 -0400
Subject: [PATCH 12/13] use new gnome-disk-utility API to hide unwanted devices

This is to resolve bugs like

 https://bugzilla.redhat.com/show_bug.cgi?id=495170
---
 monitor/gdu/ggduvolumemonitor.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/monitor/gdu/ggduvolumemonitor.c b/monitor/gdu/ggduvolumemonitor.c
index 67e2ec0..2c1f727 100644
--- a/monitor/gdu/ggduvolumemonitor.c
+++ b/monitor/gdu/ggduvolumemonitor.c
@@ -720,6 +720,12 @@ should_mount_be_ignored (GduPool *pool, GduDevice *d)
 
   ret = FALSE;
 
+  if (gdu_device_get_presentation_hide (d))
+    {
+      ret = TRUE;
+      goto out;
+    }
+
   mount_path = gdu_device_get_mount_path (d);
   if (mount_path == NULL || strlen (mount_path) == 0)
     goto out;
@@ -751,6 +757,9 @@ should_volume_be_ignored (GduPool *pool, GduVolume *volume, GList *fstab_mount_p
 
   device = gdu_presentable_get_device (GDU_PRESENTABLE (volume));
 
+  if (gdu_device_get_presentation_hide (device))
+    goto out;
+
   usage = gdu_device_id_get_usage (device);
   type = gdu_device_id_get_type (device);
 
@@ -824,6 +833,9 @@ should_drive_be_ignored (GduPool *pool, GduDrive *d, GList *fstab_mount_points)
       goto out;
     }
 
+  if (gdu_device_get_presentation_hide (device))
+    goto out;
+
   has_volumes = FALSE;
   all_volumes_are_ignored = TRUE;
 
-- 
1.6.2.2