Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 May 1998 19:40:53 +0200 (MEST)
From:      hans@artcom.de
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/6528: sys/scsi/ch.c CHIOGSTATUS is broken
Message-ID:  <m0yWli1-00000nC@mail.artcom.de>

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

>Number:         6528
>Category:       kern
>Synopsis:       sys/scsi/ch.c CHIOGSTATUS is broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May  5 10:40:01 PDT 1998
>Last-Modified:
>Originator:     Hans Huebner
>Organization:
Art+Com GmbH, Berlin, Germany
>Release:        FreeBSD 2.2.6-RELEASE i386
>Environment:

2.2.6-RELEASE, Pentium/PCI-based system with Symbios Logic SYM22802 SCSI
controller and Transitional Technologies Q47 DLT robot.

>Description:

The CHIOGSTATUS ioctl of the SCSI media changer driver (sys/scsi/ch.c)
is broken.  It omits the SCSI_DATA_IN flag in the SCSI READ ELEMENT
STATUS command, which makes the 'chio status' command fail.

>How-To-Repeat:

chio status

>Fix:
	
*** ch.c        1997/03/07 09:34:26     1.34
--- ch.c        1998/05/05 17:37:30
***************
*** 603,609 ****
         * Send command to changer.
         */
        return (scsi_scsi_cmd(sc->sc_link, (struct scsi_generic *)&cmd,
!           sizeof(cmd), (u_char *)data, datalen, CHRETRIES, 100000, NULL, 0));
  }
  
  
--- 603,609 ----
         * Send command to changer.
         */
        return (scsi_scsi_cmd(sc->sc_link, (struct scsi_generic *)&cmd,
!           sizeof(cmd), (u_char *)data, datalen, CHRETRIES, 100000, NULL, SCSI_DATA_IN));
  }
  
  

>Audit-Trail:
>Unformatted:
Hans Huebner

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?m0yWli1-00000nC>