From owner-freebsd-scsi Sat Jul 27 10:21:36 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA21790 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 10:21:36 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA21773 for ; Sat, 27 Jul 1996 10:21:24 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id TAA27939; Sat, 27 Jul 1996 19:21:04 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA02204; Sat, 27 Jul 1996 19:21:03 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id SAA01784; Sat, 27 Jul 1996 18:51:55 +0200 (MET DST) From: J Wunsch Message-Id: <199607271651.SAA01784@uriah.heep.sax.de> Subject: Re: Setting disk sector size? To: scsi@freebsd.org Date: Sat, 27 Jul 1996 18:51:55 +0200 (MET DST) Cc: grog@freefall.freebsd.org (Greg Lehey) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199607271514.IAA13074@freefall.freebsd.org> from Greg Lehey at "Jul 27, 96 08:14:30 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Greg Lehey wrote: > specific, it times out). I think that the problem is that scsi tries > to access the disk before it reads the mode page. scsiformat issues a > direct scsi command, so I assume that I could issue a write command > and write it back. Well, scsiformat does nothing very magic, have a look into this shell script. But you are using the `control' device, are you? The regular (block/character) device will always touch the disk first in sd_open(). Using the control device won't get you to sd_open() at all (the open of the control device is caught in the upper layers of the SCSI driver). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)