From f64fbf54773cd227dcb8934204f27d4c94becb7d Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 6 May 1998 09:11:20 +0000 Subject: [PATCH] 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. PR: 6528 Reviewed by: phk Submitted by: Hans Huebner --- sys/scsi/ch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index 5faca39e076..ecab8792714 100644 --- a/sys/scsi/ch.c +++ b/sys/scsi/ch.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ch.c,v 1.43 1998/01/24 02:54:48 eivind Exp $ + * $Id: ch.c,v 1.44 1998/04/16 12:28:30 peter Exp $ */ #include "opt_devfs.h" @@ -628,7 +628,7 @@ ch_getelemstatus(sc, first, count, data, datalen) * 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)); + sizeof(cmd), (u_char *)data, datalen, CHRETRIES, 100000, NULL, SCSI_DATA_IN)); }