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

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



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


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