[master 5/6] Fix isDisk and partitionable properties for md fwraid.

dwlehman installerbot-noreply at redhat.com
Tue Aug 4 18:29:50 UTC 2015


From: David Lehman <dlehman at redhat.com>

Related: rhbz#1245191
---
 blivet/devices/md.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/blivet/devices/md.py b/blivet/devices/md.py
index 7087eac..33db040 100644
--- a/blivet/devices/md.py
+++ b/blivet/devices/md.py
@@ -628,6 +628,14 @@ def mediaPresent(self):
         # (the device node does not allow read / write calls)
         return False
 
+    @property
+    def isDisk(self):
+        return False
+
+    @property
+    def partitionable(self):
+        return False
+
 class MDBiosRaidArrayDevice(MDRaidArrayDevice):
 
     _type = "mdbiosraidarray"
@@ -643,6 +651,15 @@ def __init__(self, name, **kwargs):
         self._size = self.currentSize
 
     @property
+    def isDisk(self):
+        # pylint: disable=bad-super-call
+        return super(MDRaidArrayDevice, self).isDisk
+
+    def partitionable(self):
+        # pylint: disable=bad-super-call
+        return super(MDRaidArrayDevice, self).partitionable
+
+    @property
     def size(self):
         # For container members return probed size, as we cannot determine it
         # when teared down.


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/ca69b0348c3d7809c4d6655867ea12edf5a3ff10


More information about the anaconda-patches mailing list