Bug 118779 - [ata] cdcontrol + "eject key" can eject mounted medium
Summary: [ata] cdcontrol + "eject key" can eject mounted medium
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-17 14:20 UTC by Nikos Vassiliadis
Modified: 2008-07-04 14:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikos Vassiliadis 2007-12-17 14:20:01 UTC
Using cdcontrol and the eject key can result in
ejecting a mounted medium.

Other info:
pciconf
atapci1@pci0:31:2:      class=0x01018f card=0x42468086 chip=0x24d18086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801EB (ICH5) SATA Controller'
    class      = mass storage
    subclass   = ATA

atacontrol info ata1
Master: acd0 <JLMS XJ-HD166S/DS1A> ATA/ATAPI revision 5
Slave:   ad3 <WDC WD205BA/P76OA30A> ATA/ATAPI revision 4

atacontrol cap acd0 

Protocol              ATA/ATAPI revision 5
device model          JLMS XJ-HD166S
serial number         
firmware revision     DS1A
cylinders             0
heads                 0
sectors/track         0
lba supported         
lba48 not supported       
dma supported
overlap not supported

Feature                      Support  Enable    Value           Vendor
write cache                    no       no
read ahead                     no       no
Tagged Command Queuing (TCQ)   no       no      0/0x00
SMART                          no       no
microcode download             no       no
security                       no       no
power management               no       no
advanced power management      no       no      0/0x00
automatic acoustic management  no       no      0/0x00  0/0x00

How-To-Repeat: mount /cdrom
cdcontrol eject

press the eject key and the medium will be ejected
Comment 1 Jaakko Heinonen 2008-07-01 11:27:02 UTC
There is a patch in kern/125139
(http://www.freebsd.org/cgi/query-pr.cgi?pr=125139) which should fix the
issue.

-- 
Jaakko
Comment 2 Nikos Vassiliadis 2008-07-04 13:16:28 UTC
On Tuesday 01 July 2008 13:27:02 Jaakko Heinonen wrote:
> There is a patch in kern/125139
> (http://www.freebsd.org/cgi/query-pr.cgi?pr=125139) which should fix the
> issue.

Yes, it does. Thanks!

Nikos
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2008-07-04 14:08:08 UTC
State Changed
From-To: open->closed

See the patch in kern/125139.