freebsd-nq/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
cam_conf.h
cam_debug.h
cam_extend.c
cam_extend.h
cam_periph.c
cam_periph.h
cam_queue.c
cam_queue.h
cam_sim.c
cam_sim.h
cam_xpt_periph.h
cam_xpt_sim.h
cam_xpt.c
cam_xpt.h
cam.c
cam.h