Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16690 - ide scsi emulation removes the ide device node from devfs
Summary: ide scsi emulation removes the ide device node from devfs
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-02 16:51 UTC by Toby Dickenson
Modified: 2003-09-27 16:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toby Dickenson 2003-03-02 16:51:40 UTC
I have an IDE cdr on /dev/hdc. 
 
If I do not enable IDE SCSI emulation then /dev/hdc and /dev/cdroms/cdrom0 exist as 
symlinks to the device node in /dev/ide/host0/bus1/target0/lun0/, and work well. I can 
mount CDs using it. 
 
I need to enable IDE SCSI emulation to write to the cd. I can do this for this device by 
appending hdc=scsi to the kernel command line in lilo and it has the expected result. 
/dev/cdroms/cdrom0 is now a symlink into /dev/scsi/ and I can mount CDs using it. 
 
Unfortunately there is no longer a /dev/hdc device node in devfs, nor any other node 
with the same major/minor number. This node is no longer needed for reading the 
cdrom, but it is needed for using hdparm to tweak the ide interface. (turning on the 
interrupt unmask flag is crucial for performance) 
 
Creating a device node by hand using mknod (outside devfs) allows hdparm to work. 
 
I'm not sure if this is a gentoo devfs configuration bug, or kernel bug. 
 
gentoo-sources-2.4.19-r9 
hdparm-5.2-r3 
baselayout-1.8.5.8
Comment 1 Jon Portnoy (RETIRED) gentoo-dev 2003-03-02 18:25:05 UTC
This is not a bug. If you emulate SCSI, as far as the kernel is concerned, that's a SCSI device. You can't have something be both SCSI and IDE.

I recommend marking this CANTFIX.
Comment 2 SpanKY gentoo-dev 2003-03-02 18:50:46 UTC
yeah, that's pretty much the answer from the Gentoo stand point ...
this is the behavior that is supposed to happen with devfs ...

to the kernel, it is a scsi device, not an ide one
you may tweak the device by hand if you run hdparm on it
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-09-27 16:18:51 UTC
see above comments