[PATCH 4/5] Add mdadm_no_degraded

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

 



This patch adds new function used by activating md array for isw format.
Subject: [PATCH 4/5] Add mdadm_no_degraded

---
 storage/devicelibs/mdraid.py |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/storage/devicelibs/mdraid.py b/storage/devicelibs/mdraid.py
index 56fd626..74ce740 100644
--- a/storage/devicelibs/mdraid.py
+++ b/storage/devicelibs/mdraid.py
@@ -153,6 +153,20 @@ def mdadd(device):
     rc = iutil.execWithRedirect("mdadm",
                                 ["--incremental", 
                                  "--quiet",
+                                device],
+                                stderr = "/dev/tty5",
+                                stdout = "/dev/tty5",
+                                searchPath=1)
+
+    if rc:
+        raise MDRaidError("mdadd failed for %s" % device)
+
+def mdadd_no_degraded(device):
+    ### FIXME: this should be merged with mdadd function
+    rc = iutil.execWithRedirect("mdadm",
+                                ["--incremental", 
+                                 "--auto=md",
+                                 "--no-degraded",
                                  device],
                                 stderr = "/dev/tty5",
                                 stdout = "/dev/tty5",
-- 
1.6.3.1.54.g99dd

_______________________________________________
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