[PATCH] Fix backtrace when adding mdraid arrays (#560360)

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

 



When doing custom partitioning, and adding an mdraid array, and a pre-existing
array has a minor > 32, we will back trace, this patch fixes this.
---
 storage/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index adbcd4d..a808acd 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -549,7 +549,7 @@ class Storage(object):
         """ Return a list of unused minors for use in RAID. """
         raidMinors = range(0,32)
         for array in self.mdarrays + self.mdcontainers:
-            if array.minor is not None:
+            if array.minor is not None and array.minor in raidMinors:
                 raidMinors.remove(array.minor)
         return raidMinors
 
-- 
1.6.6

_______________________________________________
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