Re: [PATCH 6/8] Changes for using mdadm for isw_raid_member

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

 



   add udev_device_is_mdraid

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 36e8610..3722e7b 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1153,14 +1153,13 @@ class DeviceTree(object):
            log.debug("%s is a cdrom" % name)
            if device is None:
                device = self.addUdevOpticalDevice(info)
-        elif udev_device_is_dmraid(info):
+        elif udev_device_is_mdraid(info) or udev_device_is_dmraid(info):
            # This is special handling to avoid the "unrecognized disklabel"
            # code since dmraid member disks won't have a disklabel. We
            # use a StorageDevice because DiskDevices need disklabels.
            # Quite lame, but it doesn't matter much since we won't use
            # the StorageDevice instances for anything.
-            log.debug("%s is part of a dmraid" % name)
-            if device is None:
+             if device is None:
                device = StorageDevice(name,
                                major=udev_device_get_major(info),
minor=udev_device_get_minor(info),
_______________________________________________
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