Bug 6457 - hdparm cannot manipulate CD-ROM drives without a disk in
hdparm cannot manipulate CD-ROM drives without a disk in
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: hdparm (Show other bugs)
6.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Cristian Gafton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-10-28 06:07 EDT by Chris Siebenmann
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-02-17 15:14:57 EST
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 Chris Siebenmann 1999-10-28 06:07:12 EDT
If you attempt to use hdparm on an IDE CD-ROM drive without
a CD inserted, it will fail (I believe even on the 2.2.12
derived kernel Redhat ships in 6.1; at least the code is
there, according to the kernel source RPM).

 This is because as of somewhere in 2.2.*, you need to
open CD-ROM devices with O_NONBLOCK in order to talk to
them if there is no media inserted. The hdparm-3.5-1 RPM
shipped as part of Redhat 6.1 only opens the device with
O_RDONLY (checked with strace).

 Repeat by:
	hdparm /dev/cdrom
on a machine with an IDE CD-ROM and no disk inserted,
and watch the error message.
Comment 1 Bernhard Rosenkraenzer 2000-02-17 15:14:59 EST
Thanks, fixed in 3.6-4

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