[gnome-disk-utility] md-raid: Don't include ignored devices in the component list



commit 409745484569f7b87ba6f410c720a3da9b6d3adf
Author: David Zeuthen <davidz redhat com>
Date:   Tue Feb 23 11:38:52 2010 -0500

    md-raid: Don't include ignored devices in the component list
    
    Prior to this patch we showed objects from each component as well as
    multipath object itself
    
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/gdu-gtk/gdu-edit-linux-md-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gdu-gtk/gdu-edit-linux-md-dialog.c b/src/gdu-gtk/gdu-edit-linux-md-dialog.c
index 8cae427..e778478 100644
--- a/src/gdu-gtk/gdu-edit-linux-md-dialog.c
+++ b/src/gdu-gtk/gdu-edit-linux-md-dialog.c
@@ -697,6 +697,9 @@ update_tree (GduEditLinuxMdDialog *dialog)
                 gint position;
                 gchar *slave_state_str;
 
+                if (gdu_device_should_ignore (sd))
+                        continue;
+
                 pool = gdu_device_get_pool (sd);
                 volume_for_slave = gdu_pool_get_volume_by_device (pool, sd);
                 g_object_unref (pool);



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