Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Development (http://www.linux-archive.org/archlinux-development/)
-   -   Remove MDRaidArrayDevice biosraid property (http://www.linux-archive.org/archlinux-development/314215-remove-mdraidarraydevice-biosraid-property.html)

Hans de Goede 01-24-2010 09:37 AM

Remove MDRaidArrayDevice biosraid property
 
Now that MD BIOS RAID arrays have their own type, there is no longer a
need for the biosraid property.
---
iw/partition_gui.py | 2 +-
storage/devices.py | 7 -------
2 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 981b659..2e9be5f 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1000,7 +1000,7 @@ class PartitionWindow(InstallWindow):
self.tree[iter]['IsLeaf'] = True

# handle RAID next
- mdarrays = [a for a in self.storage.mdarrays if not a.biosraid]
+ mdarrays = self.storage.mdarrays
if mdarrays:
raidparent = self.tree.append(None)
self.tree[raidparent]['Device'] = _("RAID Devices")
diff --git a/storage/devices.py b/storage/devices.py
index f2ff639..ef920de 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -2828,13 +2828,6 @@ class MDRaidArrayDevice(StorageDevice):
return "RAID%d Array" % self.level

@property
- def biosraid(self):
- """ Is this a BIOS RAID related set? """
- return self.type == "mdcontainer" or
- (len(self.devices) != 0 and
- self.devices[0].type == "mdcontainer")
-
- @property
def partitionable(self):
return len(self.devices) != 0 and
self.devices[0].type == "mdcontainer"
--
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

Ales Kozumplik 01-25-2010 08:01 AM

Remove MDRaidArrayDevice biosraid property
 
On 01/24/2010 11:37 AM, Hans de Goede wrote:

Now that MD BIOS RAID arrays have their own type, there is no longer a
need for the biosraid property.


Ack.

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 10:03 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.