Bug 6360

Summary: eject -t gives spurious error message
Product: [Retired] Red Hat Linux Reporter: jeastmond
Component: ejectAssignee: Preston Brown <pbrown>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 6.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-01-13 03:14:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jeastmond 1999-10-26 00:38:35 UTC
I've been using an parallel port HP7200e CD-ReWriter for a
while now with no problems.

One thing I do notice is when I issue the command:

eject -t /dev/pcd0

to close the CD tray it works fine but I get the message:

eject: CD-ROM tray close command failed: Operation not
permitted

I find that I still get the message even if I'm root.

The output from the pcd driver with verbose=2 is as follows.

When the driver module is first loaded I get:

pcd: pcd version 1.07, major 46, nice 0
pcd0: epat: port 0x3bc, mode 0, ccr ff, test=(255,255,510)
pcd0: epat: port 0x3bc, mode 1, ccr ff, test=(255,255,510)
pcd0: epat: port 0x3bc, mode 2, ccr ff, test=(255,255,510)
pcd0: 0x378 is parport0
pcd0: epat: port 0x378, mode 0, ccr 0, test=(256,0,0)
pcd0: epat: port 0x378, mode 1, ccr 40, test=(256,224,448)
pcd0: epat: port 0x378, mode 2, ccr 0, test=(256,0,0)
pcd0: epat: port 0x378, mode 3, ccr 0, test=(256,0,0)
pcd0: epat: port 0x378, mode 4, ccr 0, test=(256,0,0)
pcd0: epat: port 0x378, mode 5, ccr 0, test=(256,0,0)
pcd0: Sharing parport0 at 0x378
pcd0: epat 1.01, Shuttle EPAT chip c6 at 0x378, mode 5
(EPP-32), delay 1
pcd0: Reset (1) signature = 6f 6f 6f 6f 6f (incorrect)
pcd0: Reset (22) signature = 1 1 1 14 eb
pcd0: identify: Read 36 bytes
pcd0: Slave: CD-Writer+ 7200

When I issue eject /dev/pcd0 (giving no error message) I
get:

VFS: Disk change detected on device pcd(46,0)
pcd0: unlock door completion: alt=0x51 stat=0x51 err=0x60
loop=0 phase=3
pcd0: Request sense: Read 16 bytes
pcd0: unlock door: Sense key: 6, ASC: 29, ASQ: 0

When I issue eject -t /dev/pcd0 (giving the error message
decribed above) I get:

VFS: Disk change detected on device pcd(46,0)
pcd0: close tray completion: alt=0x51 stat=0x51 err=0x20
loop=94537
phase=3
pcd0: Request sense: Read 16 bytes
pcd0: close tray: Sense key: 2, ASC: 3a, ASQ: 0

Comment 1 Preston Brown 2000-01-13 03:14:59 UTC
I believe this is a linux kernel driver bug, or a hardware bug.  Most CD-ROMS
have shoddy support for tray closing, at best.

Ignore it and be happy. :) Doesn't happen on the vast majority of drives.