[PATCH 08/14] Add a method to determine whether a device is a CCISS RAID device.

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

 



Unfortunately, the udev data for CCISS does not contain MD_* so I can't use
the udev_device_is_md to key off.  This will have to do.
---
 storage/udev.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/udev.py b/storage/udev.py
index ee750bb..6351b22 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -168,6 +168,10 @@ def udev_device_is_md(info):
     return info.has_key("MD_DEVNAME") and \
            info.has_key("MD_METADATA")
 
+def udev_device_is_cciss(info):
+    """ Return True if the device is a CCISS device. """
+    return udev_device_get_name(info).startswith("cciss")
+
 def udev_device_is_dasd(info):
     """ Return True if the device is a dasd device. """
     devname = info.get("DEVNAME")
-- 
1.6.5.1

_______________________________________________
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