Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 1999 22:15:04 -0700 (PDT)
From:      simonw@cinesite.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   kern/12218: Eject ioctl() for wfd (ATAPI driver) doesn't work
Message-ID:  <19990615051504.8285014D6D@hub.freebsd.org>

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

>Number:         12218
>Category:       kern
>Synopsis:       Eject ioctl() for wfd (ATAPI driver) doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 14 22:20:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Simon Walton
>Release:        3.1
>Organization:
>Environment:
FreeBSD stepney 3.1-RELEASE FreeBSD 3.1-RELEASE #14: Mon May 31 21:29:49 PDT 1999     simonw@stepney:/usr/src/sys/compile/STEPNEY  i386
>Description:
wfd driver code tries to give wd driver first crack at ioctl's,
but incorrectly interprets internal error and never gets to send
eject to ATAPI device.
>How-To-Repeat:
Put zip disk in internal IDE zip drive, do:

ioctl (fd, _IO('c',24), 0)

where fd is the corresponding wfd open file descriptor. Disk
does not eject.
>Fix:
This kernel patch fixes it:

--- i386/isa/wfd.c.sav  Mon May 31 21:29:06 1999
+++ i386/isa/wfd.c      Mon May 31 21:29:34 1999
@@ -663,7 +663,7 @@
 
        error = dsioctl("wfd", dev, cmd, addr, flag, &t->dk_slices,
                        wfdstrategy1, (ds_setgeom_t *)NULL);
-       if (error != -1)
+       if (error != ENOIOCTL)
                return (error);
 
        if (t->flags & F_MEDIA_CHANGED)


>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?19990615051504.8285014D6D>