From owner-cvs-sys Fri Dec 26 06:57:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA14982 for cvs-sys-outgoing; Fri, 26 Dec 1997 06:57:16 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA14943; Fri, 26 Dec 1997 06:56:29 -0800 (PST) (envelope-from joerg@FreeBSD.org) From: Joerg Wunsch Received: (from joerg@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id GAA08093; Fri, 26 Dec 1997 06:52:30 -0800 (PST) Date: Fri, 26 Dec 1997 06:52:30 -0800 (PST) Message-Id: <199712261452.GAA08093@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/scsi worm.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk joerg 1997/12/26 06:52:30 PST Modified files: sys/scsi worm.c Log: Fix some breakage that prevented the Plasmon burners from being used under -current. The actual preparation of the next track will now be deferred until just before the first write operation. Otherwise, opening the device with write intent will cause the execution of commands that are illegal in `limited command set mode' (i.e., after the write channel has been opened). While i was at it, cleaned up the worm_open() function a bit. Removed the volume overflow pre-check in worm_strategy(). It was time-consuming, and rather useless in many cases anyway (with the size being reported for just the entire volume only), so we can as well let the actual SCSI command fail instead, where it'll properly be reported as EIO. Partially submitted by & discussed with: jmz Revision Changes Path 1.50 +66 -67 src/sys/scsi/worm.c