Subject: Re: OK to allow raw SCSI requests on tapes?
To: Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 07/16/1998 10:25:08
On Thu, 16 Jul 1998 12:14:54 +0200 (MET DST) 
 Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de> wrote:

 > Are there objections?

My only concern about this is that you could issue a raw read command,
which could screw up the internal state-keeping of the tape driver...

On the other hand, we supply the rope...

 > 
 > best regards
 > Matthias
 > 
 > Index: dev/scsipi/st.c
 > ===================================================================
 > RCS file: /cvsroot/src/sys/dev/scsipi/st.c,v
 > retrieving revision 1.91
 > diff -c -2 -r1.91 st.c
 > *** st.c	1998/07/15 20:13:57	1.91
 > --- st.c	1998/07/16 10:08:39
 > ***************
 > *** 1320,1328 ****
 >   
 >   	default:
 > ! 		if (STMODE(dev) == CTLMODE)
 > ! 			error = scsipi_do_ioctl(st->sc_link, dev, cmd, arg,
 > ! 			    flag, p);
 > ! 		else
 > ! 			error = ENOTTY;
 >   		break;
 >   	}
 > --- 1320,1325 ----
 >   
 >   	default:
 > ! 		error = scsipi_do_ioctl(st->sc_link, dev, cmd, arg,
 > ! 					flag, p);
 >   		break;
 >   	}

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 650 940 5942