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 > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 01-22-2010, 08:24 AM
Hans de Goede
 
Default Update exclusiveDisks when handling mdraid BIOSRAID in isIgnored

When checking for mdraid BIOSRAID sets in isIgnored and finding one,
update the exclusiveDisks entry, so that the correct name is present
for other usage of exclusiveDisks (such as in cleardisks_gui.py).
---
storage/devicetree.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index ffc1c90..4fb4e6c 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -898,8 +898,9 @@ class DeviceTree(object):
if udev_device_get_md_container(info) and
udev_device_get_md_name(info):
md_name = udev_device_get_md_name(info)
- for disk in self.exclusiveDisks:
- if re.match("isw_[a-z]*_%s" % md_name, disk):
+ for i in range(0, len(self.exclusiveDisks)):
+ if re.match("isw_[a-z]*_%s" % md_name, self.exclusiveDisks[i]):
+ self.exclusiveDisks[i] = name
return False

if udev_device_is_disk(info) and
--
1.6.5.2

_______________________________________________
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 07:46 AM.

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