Show by-path names for DASD and zFCP, WWID for mpath (#580507)
In the partition editor UI, we get device names for DASD as "dasda",
"dasdb", and so on. For zFCP, we get "sda", "sdb", and so on. The by-path
identifiers are more useful to s390 users, so display those on this
screen if we have them, otherwise fall back on the device path.
For mpath devices, try to display the WWID if we have it, otherwise show
the device path.
(Based on patch from David Cantrell <dcantrell@redhat.com>)
---
iw/partition_gui.py | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index be179dc..3773c5e 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -50,6 +50,8 @@ from storage.partitioning import doPartitioning
from storage.partitioning import hasFreeDiskSpace
from storage.devicelibs import lvm
from storage.devices import devicePathToName, PartitionDevice
+from storage.devices import deviceNameToDiskByPath
+from storage.errors import DeviceNotFoundError
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
06-14-2010, 06:26 PM
David Cantrell
Show by-path names for DASD and zFCP, WWID for mpath (#580507)
Ack. I have applied this with minor changes (I do not like the use of
.replace and prefer os.path.basename instead).
On Thu, 3 Jun 2010, Steffen Maier wrote:
In the partition editor UI, we get device names for DASD as "dasda",
"dasdb", and so on. For zFCP, we get "sda", "sdb", and so on. The by-path
identifiers are more useful to s390 users, so display those on this
screen if we have them, otherwise fall back on the device path.
For mpath devices, try to display the WWID if we have it, otherwise show
the device path.
(Based on patch from David Cantrell <dcantrell@redhat.com>)
---
iw/partition_gui.py | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index be179dc..3773c5e 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -50,6 +50,8 @@ from storage.partitioning import doPartitioning
from storage.partitioning import hasFreeDiskSpace
from storage.devicelibs import lvm
from storage.devices import devicePathToName, PartitionDevice
+from storage.devices import deviceNameToDiskByPath
+from storage.errors import DeviceNotFoundError