[PATCH 7/7] Create DASDDevice objects for DASD devices when building devicetree.

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

 



When building the device tree, if the block device is a DASD, create a
DASDDevice object rather than a DiskDevice object.
---
 storage/devicetree.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index ae0ff15..8ccbe08 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1170,6 +1170,9 @@ class DeviceTree(object):
             # This needs bug #523314 fixed
             kwargs["uuid"] = udev_device_get_md_uuid(info)
             kwargs["exists"]  = True
+        elif udev_device_is_dasd(info):
+            diskType = DASDDevice
+            log.debug("%s is a dasd device" % name)
         else:
             diskType = DiskDevice
             log.debug("%s is a disk" % name)
-- 
1.6.2.5

_______________________________________________
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