Bug 453948 - udev rename cdrom devices on scsi bus
Summary: udev rename cdrom devices on scsi bus
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: udev
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Harald Hoyer
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 1049888
TreeView+ depends on / blocked
 
Reported: 2008-07-03 13:20 UTC by Zdenek Prikryl
Modified: 2014-04-30 09:51 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-30 09:51:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Zdenek Prikryl 2008-07-03 13:20:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008061712 Fedora/3.0-1.fc9 Firefox/3.0

Description of problem:
When you have a cdrom on scsi bus, than udev renames the device from sr* to scd*. This behaviour leads to bugs. For example in /proc/sys/dev/cdrom/info is still sr* as the device name. So, "$ eject -X" ends with an error message etc.

Kernel identify the device as sr0.

$ dmesg | grep sr
sr0: scsi3-mmc drive: 188x/24x writer dvd-ram cd/rw xa/form2 cdda pop-up
sr 3:0:0:0: Attached scsi CD-ROM sr0


udev rename the device to scd0

/etc/udev/rules.d/50-udev.rules
# rename sr* to scd*
KERNEL=="sr[0-9]*", BUS=="scsi", NAME="scd%n"

instead renaming there should be symlinking
KERNEL=="sr[0-9]*", BUS=="scsi", SYMLINK+="scd%n"

Version-Release number of selected component (if applicable):
udev-095-14.16.el5, eject-2.1.5-4.2.el5

How reproducible:
Always


Steps to Reproduce:
1.Have a PC with a cdrom on scsi bus
2.boot the PC
3.ll /dev/cdrom

Actual Results:
the symlink /dev/cdrom points to /dev/scd0

Expected Results:
the symlink /dev/cdrom points to /dev/sr0

Additional info:

Comment 1 Harald Hoyer 2008-07-03 14:24:53 UTC
correct

Comment 7 RHEL Program Management 2009-11-06 18:52:32 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 10 Michal Sekletar 2014-04-26 20:00:57 UTC
On rhel-5.10 I see in /etc/udev/rules.d/50-udev.rules following:

# rename sr* to scd*
KERNEL=="sr[0-9]*", BUS=="scsi", SYMLINK+="scd%n"

This has been fixed along side other bugzillas by commit 52f47b4b but somehow slipped through the cracks and did get to errata. I think we can *close* this BZ.


Note You need to log in before you can comment on or make changes to this bug.