freebsd-dev/sys/cam
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 Don't clear the SA_FLAG_TAPE_LOCKED prior to calling 1999-11-21 20:23:58 +00:00
cam_ccb.h Get rid of some trailing commas in enumerated types that cause gcc to 1999-11-17 05:06:52 +00:00
cam_conf.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_debug.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_extend.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_extend.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_periph.c Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for the 1999-10-30 06:32:05 +00:00
cam_periph.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_queue.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_queue.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_sim.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_sim.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_xpt_periph.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_xpt_sim.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam_xpt.c Convert the xpt, pass, pt and target drivers to use the new 1999-11-17 04:59:09 +00:00
cam_xpt.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam.c $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
cam.h Get rid of some trailing commas in enumerated types that cause gcc to 1999-11-17 05:06:52 +00:00