freebsd-skq/sys/cam/scsi
Matt Jacob ddc83e8523 Don't clear the SA_FLAG_TAPE_LOCKED prior to calling
saprevent when we're doing an OFFLINE ioctl- saprevent
won't unlock the door, which then causes the unload to
fail on some units.

If we've already unloaded the tape, don't try and rewind and
unload in saclose. This is a slightly riskier change because
we're now going to depend on SA_FLAG_TAPE_MOUNTED to say whether
we've really unloaded the tape. This involved changing the
setting in sadone for tape errors to SA_FLAG_TAPE_FROZEN (which
is more accurate anyway-if you get an EIO you've probably lost
tape position anyway) where it used to just clear the mounted
flag.
1999-11-21 20:23:58 +00:00
..
scsi_all.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_all.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_cd.c Introduce the disk mini-layer and devstat_end_transaction_buf() in cam/scsi. 1999-10-01 09:34:10 +00:00
scsi_cd.h Some fixes to the CD driver that may fix PR kern/7996. The data direction 1998-09-20 22:48:15 +00:00
scsi_ch.c Add make_dev functions. Tested with only one changer (sigh- all my others 1999-11-21 19:17:47 +00:00
scsi_ch.h Correct the definition of the changer device capabilities page. The 1998-12-17 22:26:39 +00:00
scsi_da.c useracc() the prequel: 1999-10-29 18:09:36 +00:00
scsi_da.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_message.h SCSI Peripheral drivers for CAM: 1998-09-15 06:36:34 +00:00
scsi_pass.c Convert the xpt, pass, pt and target drivers to use the new 1999-11-17 04:59:09 +00:00
scsi_pass.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_pt.c Convert the xpt, pass, pt and target drivers to use the new 1999-11-17 04:59:09 +00:00
scsi_pt.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_sa.c Don't clear the SA_FLAG_TAPE_LOCKED prior to calling 1999-11-21 20:23:58 +00:00
scsi_sa.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_targ_bh.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
scsi_target.c Convert the xpt, pass, pt and target drivers to use the new 1999-11-17 04:59:09 +00:00
scsi_targetio.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00