FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 08-05-2010, 08:51 PM
David Lehman
 
Default Include mpath/fwraid member devices in exclusiveDisks.

Related: rhbz#596468
Related: rhbz#616273
---
iw/filter_gui.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index 6e6f4cc..c785795 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -50,7 +50,7 @@ VENDOR_COL = 7
INTERCONNECT_COL = 8
SERIAL_COL = 9
ID_COL = 10
-PATHS_COL = 11
+MEMBERS_COL = 11
PORT_COL = 12
TARGET_COL = 13
LUN_COL = 14
@@ -416,6 +416,9 @@ class FilterWindow(InstallWindow):
selected = set()
for dev in self.pages[0].ds.getSelected():
selected.add(udev_device_get_name(dev[OBJECT_COL]))
+ if isMultipath(dev[OBJECT_COL]) or isRAID(dev[OBJECT_COL]):
+ members = dev[MEMBERS_COL].split("
")
+ selected.update(set(members))

if len(selected) == 0:
self.anaconda.intf.messageWindow(_("Error"),
@@ -504,7 +507,7 @@ class FilterWindow(InstallWindow):
np.ds.addColumn(_("Capacity"), CAPACITY_COL)
np.ds.addColumn(_("Vendor"), VENDOR_COL)
np.ds.addColumn(_("Interconnect"), INTERCONNECT_COL)
- np.ds.addColumn(_("Paths"), PATHS_COL)
+ np.ds.addColumn(_("Paths"), MEMBERS_COL)
np.ds.addColumn(_("Device"), DEVICE_COL, displayed=False)
return np

@@ -750,7 +753,8 @@ class FilterWindow(InstallWindow):

model = "BIOS RAID set (%s)" % rs.rs.set_type
tuple = (data, True, _active(data), _isProtected(data), rs.name,
- model, str(size) + " MB", "", "", "", "", "", "", "", "")
+ model, str(size) + " MB", "", "", "", "",
+ "
".join(members), "", "", "")
_addTuple(tuple)

unused_raidmembers = []
--
1.7.1.1

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

Thread Tools




All times are GMT. The time now is 04:14 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org