[gnome-disk-utility] Use gdu_device_should_ignore() when creating VG and RAID drives



commit 1d02aab61f8a4be9fb8fa79b829a58e53d254060
Author: David Zeuthen <davidz redhat com>
Date:   Tue Feb 23 11:36:15 2010 -0500

    Use gdu_device_should_ignore() when creating VG and RAID drives
    
    Without this check, we'd be creating GduDrive objects when seeing
    components of an inactive multipath drive.
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/gdu/gdu-pool.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gdu/gdu-pool.c b/src/gdu/gdu-pool.c
index 7871746..73fab65 100644
--- a/src/gdu/gdu-pool.c
+++ b/src/gdu/gdu-pool.c
@@ -1253,7 +1253,7 @@ recompute_presentables (GduPool *pool)
                 }
 
                 /* Ensure we have a GduLinuxLvm2VolumeGroup even if the volume group isn't running */
-                if (gdu_device_is_linux_lvm2_pv (device)) {
+                if (gdu_device_is_linux_lvm2_pv (device) && !gdu_device_should_ignore (device)) {
                         GduLinuxLvm2VolumeGroup *vg;
                         const gchar *vg_uuid;
 
@@ -1335,7 +1335,7 @@ recompute_presentables (GduPool *pool)
                 }
 
                 /* Ensure we have a GduLinuxMdDrive for each non-running arrays */
-                if (gdu_device_is_linux_md_component (device)) {
+                if (gdu_device_is_linux_md_component (device) && !gdu_device_should_ignore (device)) {
                         const gchar *uuid;
 
                         uuid = gdu_device_linux_md_component_get_uuid (device);



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