[PATCH 1/7] Special handling for mdraid BIOS RAID sets in exclusive disks

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

 



Special handling for mdraid external metadata sets (mdraid BIOSRAID):
1) The containers are intermediate devices which will never be
   in exclusiveDisks
2) Sets get added to exclusive disks with their dmraid set name by
   the filter ui.  Note that making the ui use md names instead is not
   possible as the md names are simpy md# and we cannot predict the #
---
 storage/devicetree.py |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index c171918..eca5768 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -886,6 +886,22 @@ class DeviceTree(object):
         if name in self._ignoredDisks:
             return True
 
+        # Special handling for mdraid external metadata sets (mdraid BIOSRAID):
+        # 1) The containers are intermediate devices which will never be
+        # in exclusiveDisks
+        # 2) Sets get added to exclusive disks with their dmraid set name by
+        # the filter ui.  Note that making the ui use md names instead is not
+        # possible as the md names are simpy md# and we cannot predict the #
+        if udev_device_get_md_level(info) == "container":
+            return False
+
+        if udev_device_get_md_container(info) and \
+               udev_device_get_md_name(info):
+            md_name = udev_device_get_md_name(info)
+            for disk in self.exclusiveDisks:
+                if re.match("isw_[a-z]*_%s" % md_name, disk):
+                    return False
+
         if udev_device_is_disk(info) and \
                 not udev_device_is_md(info) and \
                 not udev_device_is_dm(info) and \
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux