Bug 453948 - udev rename cdrom devices on scsi bus
udev rename cdrom devices on scsi bus
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: udev (Show other bugs)
5.2
All Linux
medium Severity medium
: rc
: ---
Assigned To: Harald Hoyer
qe-baseos-daemons
:
Depends On:
Blocks: 1049888
  Show dependency treegraph
 
Reported: 2008-07-03 09:20 EDT by Zdenek Prikryl
Modified: 2014-04-30 05:51 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-04-30 05:51:50 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Zdenek Prikryl 2008-07-03 09:20:50 EDT
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 10:24:53 EDT
correct
Comment 7 RHEL Product and Program Management 2009-11-06 13:52:32 EST
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 16:00:57 EDT
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.