[PATCH] Add support for recognizing BIOS EDD configured FCoE drives (#513018)

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

 



---
 storage/fcoe.py |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/storage/fcoe.py b/storage/fcoe.py
index 2c785b3..0bffb64 100644
--- a/storage/fcoe.py
+++ b/storage/fcoe.py
@@ -19,6 +19,7 @@
 
 import os
 import iutil
+import isys
 import logging
 import time
 from flags import flags
@@ -73,6 +74,23 @@ class fcoe(object):
         if intf:
             w.pop()
 
+    def _startEDD(self, intf = None):
+        # FIXME before commit, specify full path to sysfs_edd.sh (once
+        # packaged)
+        # FIXME2 add sysfs_edd.sh script to stage2 / install.img
+        rc = iutil.execWithCapture("sysfs_edd.sh", [ "-i" ],
+                                   stderr="/dev/tty5")
+        if not rc.startswith("NIC="):
+            log.info("No FCoE EDD info found: %s" % rc)
+            return
+
+        (key, val) = rc.split("=", 1)
+        if val not in isys.getDeviceProperties():
+            log.error("Unknown FCoE NIC found in EDD: %s, ignoring" % val)
+
+        log.info("FCoE NIC found in EDD: %s" % val)
+        self.addSan(val, dcb=True, intf=intf)
+
     def startup(self, intf = None):
         if self.started:
             return
@@ -80,9 +98,7 @@ class fcoe(object):
         if not has_fcoe():
             return
 
-        # Place holder for adding autodetection of FCoE setups based on
-        # firmware tables (like iBFT for iSCSI)
-
+        self._startEDD(intf)
         self.started = True
 
     def _startLldpad(self):
-- 
1.7.0

_______________________________________________
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