From owner-cvs-all Sun Nov 21 12:24: 5 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E69CC1521C; Sun, 21 Nov 1999 12:24:00 -0800 (PST) (envelope-from mjacob@FreeBSD.org) Received: (from mjacob@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA80953; Sun, 21 Nov 1999 12:23:59 -0800 (PST) (envelope-from mjacob@FreeBSD.org) Message-Id: <199911212023.MAA80953@freefall.freebsd.org> From: Matt Jacob Date: Sun, 21 Nov 1999 12:23:59 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/cam/scsi scsi_sa.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk mjacob 1999/11/21 12:23:59 PST Modified files: sys/cam/scsi scsi_sa.c Log: 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. Revision Changes Path 1.39 +17 -14 src/sys/cam/scsi/scsi_sa.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message