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 > Debian > Debian ISP

 
 
LinkBack Thread Tools
 
Old 01-08-2010, 07:49 PM
Chris Lumens
 
Default Take ignoredDisks into account on the filter screen as well.

If ignoredisk --disks= was given, of course there's not going to be anything
in exclusiveDisks. So don't rely solely on that.
---
iw/filter_gui.py | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index bf38b70..9b43b55 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -552,10 +552,19 @@ class FilterWindow(InstallWindow):
totalDevices += 1
totalSize += tuple[0]["XXX_SIZE"]

+ def _active(name):
+ if self.anaconda.id.storage.exclusiveDisks and
+ name in self.anaconda.id.storage.exclusiveDisks:
+ return True
+ elif self.anaconda.id.storage.ignoredDisks and
+ name not in self.anaconda.id.storage.ignoredDisks:
+ return True
+ else:
+ return False
+
for d in nonraids:
name = udev_device_get_name(d)

- active = name in self.anaconda.id.storage.exclusiveDisks
partedDevice = parted.Device(path="/dev/" + name)
d["XXX_SIZE"] = int(partedDevice.getSize())

@@ -566,7 +575,7 @@ class FilterWindow(InstallWindow):
else:
ident = udev_device_get_wwid(d)

- tuple = (d, True, active, name,
+ tuple = (d, True, _active(name), name,
partedDevice.model, str(d["XXX_SIZE"]) + " MB",
udev_device_get_vendor(d), udev_device_get_bus(d),
udev_device_get_serial(d), ident, "", "", "", "")
@@ -576,7 +585,6 @@ class FilterWindow(InstallWindow):
rs.activate(mknod=True, mkparts=False)
udev_settle()

- active = rs.name in self.anaconda.id.storage.exclusiveDisks
partedDevice = rs.PedDevice
size = int(partedDevice.getSize())
fstype = ""
@@ -593,7 +601,7 @@ class FilterWindow(InstallWindow):
data = {"XXX_SIZE": size, "ID_FS_TYPE": fstype, "DM_NAME": rs.name,
"name": rs.name}

- tuple = (data, True, active, rs.name, partedDevice.model,
+ tuple = (data, True, _active(name), rs.name, partedDevice.model,
str(size) + " MB", "", "", "", "", "", "", "", "")
_addTuple(tuple)

@@ -603,7 +611,6 @@ class FilterWindow(InstallWindow):
# We only need to grab information from the first device in the set.
name = udev_device_get_name(mpath[0])

- active = name in self.anaconda.id.storage.exclusiveDisks
partedDevice = parted.Device(path="/dev/" + name)
mpath[0]["XXX_SIZE"] = int(partedDevice.getSize())
model = partedDevice.model
@@ -611,7 +618,7 @@ class FilterWindow(InstallWindow):
# However, we do need all the paths making up this multipath set.
paths = "
".join(map(udev_device_get_name, mpath))

- tuple = (mpath[0], True, active, "", model,
+ tuple = (mpath[0], True, _active(name), "", model,
str(mpath[0]["XXX_SIZE"]) + " MB",
udev_device_get_vendor(mpath[0]),
udev_device_get_bus(mpath[0]),
--
1.6.5.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 06:42 PM.

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