[PATCH 2/3] Add biosraid property and use it in MDRaidArrayDevice.partitionable.

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

 



---
 storage/devices.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 10c5159..4b58467 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2767,6 +2767,16 @@ class MDRaidArrayDevice(StorageDevice):
     def model(self):
         return "RAID%d Array" % self.level
 
+    @property
+    def biosraid(self):
+        return (len(self.devices) != 0 and
+                self.devices[0].type == "mdcontainer" and
+                getattr(self.devices[0].format, "biosraid", False))
+
+    @property
+    def partitionable(self):
+        return self.biosraid
+
     def dracutSetupString(self):
         return "rd_MD_UUID=%s" % self.uuid
 
-- 
1.6.5.2

_______________________________________________
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