Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Sep 1999 16:49:43 -0700 (PDT)
From:      kientzle@acm.org
To:        freebsd-gnats-submit@freebsd.org
Subject:   kern/13843: da driver does not support 'CDIOCEJECT' ioctl
Message-ID:  <19990919234943.B503B14A28@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         13843
>Category:       kern
>Synopsis:       da driver does not support 'CDIOCEJECT' ioctl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 19 16:50:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Tim Kientzle
>Release:        3.2-RELEASE
>Organization:
>Environment:
FreeBSD clover.kientzle.com 3.2-RELEASE FreeBSD 3.2-RELEASE #3: Sun Sep 19 15:28:03 PDT 1999
root@clover.kientzle.com:/usr/src/sys/compile/CLOVER  i386
>Description:
Since 'od' isn't a CAM driver, shouldn't 'da' support
the 'CDIOCEJECT' ioctl, which is used to eject a variety
of removable media (e.g., ZIP drives)?

Having a way to programatically eject ZIP disks is quite
handy; using 'od' on 2.2.X, I had edited rc.shutdown to
eject any ZIP disks, which avoids some painful drive-lettering
problems when you boot Windows.  (It also ejects the disk,
which is otherwise impossible---at least for internal
drives---without turning the machine back on.)

				- Tim Kientzle

>How-To-Repeat:
The command: cdcontrol -f da0 eject

Does not work with a SCSI internal ZIP drive (nor with an
external parallel-port drive accessed through vp interface).

>Fix:
It looks like the code might be cut/pasted from scsi_cd.c to scsi_da.c.
I don't know enough about the code to be sure; might be necessary
to check and do this only for removable drives.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990919234943.B503B14A28>