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 > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 12-18-2009, 07:15 PM
David Lehman
 
Default For iSCSI devices, put the path into the UI instead of a WWID.

On Fri, 2009-12-18 at 14:41 -0500, Chris Lumens wrote:
> ---
> iw/filter_gui.py | 11 +++++++++--
> 1 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/iw/filter_gui.py b/iw/filter_gui.py
> index b540621..46c26c8 100644
> --- a/iw/filter_gui.py
> +++ b/iw/filter_gui.py
> @@ -547,11 +548,17 @@ class FilterWindow(InstallWindow):
> partedDevice = parted.Device(path="/dev/" + udev_device_get_name(d))
> d["XXX_SIZE"] = int(partedDevice.getSize())
>
> + # This isn't so great, but for iSCSI devices the path contains a lot
> + # of useful identifiying info that should be displayed.
> + if udev_device_is_iscsi(d):
> + id = udev_device_get_path(d)
> + else:
> + id = udev_device_get_wwid(d)

Are you okay with clobbering the built-in function id?

Dave

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-18-2009, 07:25 PM
Chris Lumens
 
Default For iSCSI devices, put the path into the UI instead of a WWID.

> > iw/filter_gui.py | 11 +++++++++--
> > 1 files changed, 9 insertions(+), 2 deletions(-)
> >
> > diff --git a/iw/filter_gui.py b/iw/filter_gui.py
> > index b540621..46c26c8 100644
> > --- a/iw/filter_gui.py
> > +++ b/iw/filter_gui.py
> > @@ -547,11 +548,17 @@ class FilterWindow(InstallWindow):
> > partedDevice = parted.Device(path="/dev/" + udev_device_get_name(d))
> > d["XXX_SIZE"] = int(partedDevice.getSize())
> >
> > + # This isn't so great, but for iSCSI devices the path contains a lot
> > + # of useful identifiying info that should be displayed.
> > + if udev_device_is_iscsi(d):
> > + id = udev_device_get_path(d)
> > + else:
> > + id = udev_device_get_wwid(d)
>
> Are you okay with clobbering the built-in function id?

No, I'm not.

- Chris

_______________________________________________
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 11:49 AM.

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