From owner-freebsd-hackers Thu Nov 28 16:12:29 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id QAA19765 for hackers-outgoing; Thu, 28 Nov 1996 16:12:29 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id QAA19757 for ; Thu, 28 Nov 1996 16:12:25 -0800 (PST) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.2/8.7.3) id KAA18442; Fri, 29 Nov 1996 10:40:43 +1030 (CST) From: Michael Smith Message-Id: <199611290010.KAA18442@genesis.atrad.adelaide.edu.au> Subject: Re: eject for JAZ drives In-Reply-To: <199611282315.PAA22500@lestat.nas.nasa.gov> from Jason Thorpe at "Nov 28, 96 03:14:59 pm" To: thorpej@nas.nasa.gov Date: Fri, 29 Nov 1996 10:40:42 +1030 (CST) Cc: imp@village.org, hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jason Thorpe stands accused of saying: > On Thu, 28 Nov 1996 15:29:04 -0700 > Warner Losh wrote: > > > I wanna eject my jaz drive w/o stooping? Can I do it via software? > > It's pretty simple... if your sd driver supports something like the > DIOCLOCK and DIOCEJECT ioctls in NetBSD... If it does, you should be > able to fairly easily adapt NetBSD's eject(1) program. I just did some experimenting this morning before I came to work; the Jaz doesn't properly honour the 'Eject' bit in the START STOP UNIT command. It honours the 'Start' bit, ie. it will spin up/spin down, but doesn't eject. (FYI, "scsi -f /dev/rsd04c -s 15 -c "1b 0 0 0 2 0" was what I was trying, with variations on the '2' as Start is bit 0, Eject is bit 1) This was the only medium eject command I could find for direct-access devices; perhaps the Jaz honours CD-style medium control commands? > Jason R. Thorpe thorpej@nas.nasa.gov -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[