[PATCH 08/11] Allow growable md member requests but only for RAID0.

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

 



Related: rhbz#659700
---
 pyanaconda/kickstart.py       |    3 ---
 pyanaconda/storage/devices.py |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index db5d833..d488cd9 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -726,9 +726,6 @@ class PartitionData(commands.partition.F12_PartData):
             if devicetree.getDeviceByName(kwargs["name"]):
                 raise KickstartValueError, formatErrorMsg(self.lineno, msg="RAID partition defined multiple times")
 
-            if self.grow:
-                raise KickstartValueError, formatErrorMsg(self.lineno, msg="--grow is not supported for RAID partitions")
-
             # store "raid." alias for other ks partitioning commands
             if self.onPart:
                 self.anaconda.ksdata.onPart[kwargs["name"]] = self.onPart
diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index 581b849..57e9aaa 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -2667,6 +2667,9 @@ class MDRaidArrayDevice(StorageDevice):
         elif level is not None:
             self.level = mdraid.raidLevel(level)
 
+        if self.growable and self.level != 0:
+            raise ValueError("Only RAID0 arrays can contain growable members")
+
         # For new arrays check if we have enough members
         if (not exists and parents and
                 len(parents) < mdraid.get_raid_min_members(self.level)):
-- 
1.7.3.4

_______________________________________________
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