From owner-freebsd-scsi Sun Jul 28 02:41:00 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA11199 for freebsd-scsi-outgoing; Sun, 28 Jul 1996 02:41:00 -0700 (PDT) Received: from 199.232.245.2 (ip2-max1-fitch.zipnet.net [199.232.245.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id CAA11191; Sun, 28 Jul 1996 02:40:54 -0700 (PDT) Received: (from dufault@localhost) by 199.232.245.2 (8.6.11/8.6.9) id FAA01168; Sun, 28 Jul 1996 05:34:40 -0400 From: Peter Dufault Message-Id: <199607280934.FAA01168@199.232.245.2> Subject: Re: Setting disk sector size? To: grog@freefall.freebsd.org (Greg Lehey) Date: Sun, 28 Jul 1996 05:34:40 -0400 (EDT) Cc: hdalog@zipnet.net, scsi@freefall.freebsd.org In-Reply-To: <199607272253.PAA09896@freefall.freebsd.org> from "Greg Lehey" at Jul 27, 96 03:53:10 pm Reply-to: hdalog@zipnet.net X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > That's funny that the default is 512 bytes, then. And how come > scsiformat -pv shows all the parameters? It is a shell script and is reading back and printing out the parameters for you using scsi(8). (...) > > It seems to me that an obvious approach would be to try to write > back the mode page and see what happens. What command does that? The easiest thing is to copy the scsi(8) source and change the place it sets "editinfo.can_edit" from an expression based on the changeability to a hardwired 1: From: editinfo[editind].can_edit = ((int)arg != 0); To: editinfo[editind].can_edit = 1; Then everything will show up in the editing page. You'll most likely get "invalid field in parameter list". I just looked through the mode select section of the spec again - I don't see anything that would imply ever being able to change a field that comes back as being not changeable. It says: "7.2.10.2 Changeable Values "A PC field value of 1h requests that the target return a mask denoting those mode parameters that are changeable. In the mask, the fields of the mode parameters that are changeable shall be set to all one bits and the fields of the mode parameters that are non-changeable (i.e., defined by the target) shall be set to all zero bits. "NOTE: An attempt to change a non-changeable mode parameter (via MODE SELECT) results in an error condition (see 7.2.8)" I'm afraid this may be a tough one to figure out without more information on the drive. -- Peter Dufault Real-Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267