Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 356906 Details for
Bug 516362
anaconda 12.11 traceback - 2 optical drives?
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch that should fix it.
0001-Don-t-try-to-multipath-CD-devices.-516362.patch (text/plain), 1.63 KB, created by
Peter Jones
on 2009-08-10 15:25:10 UTC
(
hide
)
Description:
Patch that should fix it.
Filename:
MIME Type:
Creator:
Peter Jones
Created:
2009-08-10 15:25:10 UTC
Size:
1.63 KB
patch
obsolete
>From 1e1158464c6c9dabd9a1e11d1d0c9d156bd77701 Mon Sep 17 00:00:00 2001 >From: Peter Jones <pjones@redhat.com> >Date: Mon, 10 Aug 2009 11:13:23 -0400 >Subject: [PATCH] Don't try to multipath CD devices. (#516362) > >CD devices obviously aren't multipath devices, but right now the code >allows them to be, because udev_device_is_disk() returns True for a CD >device. This patch makes that not the case, and also excludes disks >that don't report a serial number. >--- > storage/devicetree.py | 3 ++- > storage/udev.py | 2 ++ > 2 files changed, 4 insertions(+), 1 deletions(-) > >diff --git a/storage/devicetree.py b/storage/devicetree.py >index 0dec5e0..12d4925 100644 >--- a/storage/devicetree.py >+++ b/storage/devicetree.py >@@ -1780,7 +1780,8 @@ class DeviceTree(object): > non_disk_devices = {} > for d in devices: > serial = udev_device_get_serial(d) >- if not udev_device_is_disk(d): >+ if (not udev_device_is_disk(d)) or \ >+ (not d.has_key['ID_SERIAL_SHORT']): > non_disk_devices.setdefault(serial, []) > non_disk_devices[serial].append(d) > log.info("adding %s to non_disk_device list" % (d['name'],)) >diff --git a/storage/udev.py b/storage/udev.py >index a8024dd..2d199df 100644 >--- a/storage/udev.py >+++ b/storage/udev.py >@@ -155,6 +155,8 @@ def udev_device_is_cdrom(info): > > def udev_device_is_disk(info): > """ Return True is the device is a disk. """ >+ if udev_device_is_cdrom(info): >+ return False > has_range = os.path.exists("/sys/%s/range" % info['sysfs_path']) > return info.get("DEVTYPE") == "disk" or has_range > >-- >1.6.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 516362
:
356784
| 356906