From owner-freebsd-scsi Mon May 19 08:05:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA26333 for freebsd-scsi-outgoing; Mon, 19 May 1997 08:05:56 -0700 (PDT) Received: from crh.cl.msu.edu (crh.cl.msu.edu [35.8.1.24]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA26328 for ; Mon, 19 May 1997 08:05:53 -0700 (PDT) Received: (from henrich@localhost) by crh.cl.msu.edu (8.8.5/8.8.5) id LAA01102; Mon, 19 May 1997 11:05:33 -0400 (EDT) Message-ID: <19970519110533.07999@crh.cl.msu.edu> Date: Mon, 19 May 1997 11:05:33 -0400 From: Charles Henrich To: Joerg Wunsch Cc: freebsd-scsi@FreeBSD.ORG Subject: Re: scsi library interface References: <19970518184034.10726@crh.cl.msu.edu> <19970519103618.LH45116@uriah.heep.sax.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.74 In-Reply-To: <19970519103618.LH45116@uriah.heep.sax.de>; from J Wunsch on Mon, May 19, 1997 at 10:36:18AM +0200 X-Operating-System: FreeBSD 2.2-970422-RELENG Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On the subject of Re: scsi library interface, J Wunsch stated: > As Charles Henrich wrote: > > > Who wrote the scsi interface commands? (e.g. scsi_open, scsi_build > > ..) I need to bang on them with some questions. > > Peter Dufault. He's also got a revamped library which he was asking > people to test. It's on hub's anon ftp area, if i'm not mistaken. Cool. > > Also, in general when do you use raw mode devices vs. block mode vs > > the .ctl devices? > > Buffered (`block') devices: to mount a filesystem over them. Nothing > else. (Well, swapon(8) is in the same boat.) > > Raw (`character') devices: any other regular (i.e. read(2)/write(2)) > IO. > > Control devices: raw SCSI commands. State of the device doesn't > matter then, e.g. you can open a control device for an unformatted > disk, but you can't open the raw or buffered device. Then why is it when you start sending raw SCSI read commands to rcd0.ctl behind which lives a Toshiba, you explode the SCSI bus, yet if you send them to /dev/cd0c things appear to work? (And with a plextor, both work!) Im confused.. -Crh Charles Henrich Michigan State University henrich@msu.edu http://pilot.msu.edu/~henrich