[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 4/6] Display unpartitioned disks in main partitioning gui. (#588637)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Thu, 13 May 2010, David Lehman wrote:

Disks that are components of a biosraid array or multipath device will
not be displayed.
---
iw/partition_gui.py |    5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 9496e4e..aef98b4 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1017,6 +1017,11 @@ class PartitionWindow(InstallWindow):

        # now normal partitions
        disks = self.storage.partitioned
+        # also include unpartitioned disks that aren't mpath or biosraid
+        whole = filter(lambda d: not d.partitioned and not d.format.hidden,
+                       self.storage.disks)
+        disks.extend(whole)
+        disks.sort(key=lambda d: d.name)
        drvparent = self.tree.append(None)
        self.tree[drvparent]['Device'] = _("Hard Drives")
        for disk in disks:


- -- David Cantrell <dcantrell redhat com>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkv0p8sACgkQ5hsjjIy1Vkn/CQCg7uOWzN+NKTyDVb2YRhZ42eyF
4I0An03xhU+1MHax+uzr516HFWSH4ccS
=+iU+
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]