c9895db015
If the read or write request can fit into a 6-byte cdb, then use a 6-byte cdb, otherwise use the 10-byte as before. In sd.c: In sdattach(), make a note if the device is "ancient" (i.e. inqbuf.version & SID_ANSII == 0). Implement sdminphys(): if the device is "ancient", shorten the transfer so it will fit into a 6-byte cdb. These changes have eliminated the rejected read/write requests on my Sun 3/60 with 2 ESDI disks behind an Emulex MD21. |
||
---|---|---|
.. | ||
cd.c | ||
ch.c | ||
files.scsi | ||
README | ||
scsi_all.h | ||
scsi_base.c | ||
scsi_cd.h | ||
scsi_changer.h | ||
scsi_debug.h | ||
scsi_disk.h | ||
scsi_ioctl.c | ||
scsi_message.h | ||
scsi_tape.h | ||
scsiconf.c | ||
scsiconf.h | ||
sd.c | ||
st.c | ||
su.c | ||
uk.c |
/* $NetBSD: README,v 1.6 1995/06/02 14:04:36 mycroft Exp $ */ This release consists of the following files share/man/man4/scsi.4 <-useful general info share/man/man4/uk.4 share/man/man4/su.4 share/man/man4/ch.4 share/man/man4/cd.4 share/man/man4/sd.4 share/man/man4/st.4 <--READ THIS IF YOU USE TAPES! sbin/scsi/procargs.c sbin/scsi/scsi.c sbin/scsi/scsi.1 sbin/scsi/Makefile sbin/st/Makefile sbin/st/st.1 sbin/st/st.c ################## Using the scsi system ################## --------------making devices------------ see st(1) and st(4) for info on tape devices. ---------ioctl definitions------------- User accessable structures (e.g. ioctl definitions) have been placed in sys/cdio, sys/sgio and sys/chio (based after sys/mtio for the ioctls for mag tapes (including st). General scsi ioctls are found in sys/scsiio.h. -----------cd-rom----------------- Cdrom audio is only suported at all for cdroms that use SCSI2 audio definitions. -------------media changer--------------- Once again courtesy of grefen@convex.com (in germany) I have not tested this but he assures me it's ready for testing. If anyone has an exabyte tape changer or similar, contact the author for information regarding the control interface and program. WARNING: This has not been tested for a LONG TIME!