Subject: OK to allow raw SCSI requests on tapes?
To: None <tech-kern@NetBSD.ORG>
From: Matthias Drochner <drochner@zelux6.zel.kfa-juelich.de>
List: tech-kern
Date: 07/16/1998 12:14:54
I'd like to remove a restriction on SCSI tapes:
Currently, only the "control device" (minor 3)
is allowed to handle raw SCSI commands. This
device is not usable to read / write data, so it is not
possible to do some special handling which might be
needed for some tape devices.
(Monitoring of the remaining capacity in my case;
Matthew Jacob mentioned Stackers.)
Are there objections?
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;
}