From owner-freebsd-scsi Tue Nov 17 03:53:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA28626 for freebsd-scsi-outgoing; Tue, 17 Nov 1998 03:53:37 -0800 (PST) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA28607 for ; Tue, 17 Nov 1998 03:53:13 -0800 (PST) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.8.8/8.8.8) with UUCP id MAA26212 for freebsd-scsi@FreeBSD.ORG; Tue, 17 Nov 1998 12:52:42 +0100 (CET) (envelope-from j@uriah.heep.sax.de) Received: (from j@localhost) by uriah.heep.sax.de (8.9.1/8.9.1) id MAA15797; Tue, 17 Nov 1998 12:22:53 +0100 (MET) (envelope-from j) Message-ID: <19981117122253.18551@uriah.heep.sax.de> Date: Tue, 17 Nov 1998 12:22:53 +0100 From: J Wunsch To: freebsd-scsi@FreeBSD.ORG Subject: Re: 520byte sector size Reply-To: Joerg Wunsch References: <199811162152.NAA14263@math.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199811162152.NAA14263@math.berkeley.edu>; from Dan Strick on Mon, Nov 16, 1998 at 01:52:48PM -0800 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 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org As Dan Strick wrote: > I believe the correct method is to change the "data bytes per phys sector" > parameter (bytes 12 and 13, big endian) on the "format parameter page" > (page code 3) immediately before reformatting. That's not completely true. The SCSI standard isn't very specific in this, and a number of comments and notes that are located in the description of block descriptors imply that you can use them to alter the (logical) block size possibly requiring a future FORMAT UNIT command to get into effect. Physical sectors aren't necessarily the same as logical blocks, and you're only actually interested in logical blocks (this is what the READ and WRITE commands handle). So the outcome is, both ways (block size in the block descriptor, and physical sector size in the medium format page) cannot clearly be dismissed as ``not supported by the standard'' and are apparently allowed. > I have a program that lets you manually edit individual fields of > mode pages symbolically. The command sequence would go something > like this: Hmm, something like scsi -e -m (old SCSI system), or camcontrol -e -m (CAM system)? FreeBSD used to have it for years... -- 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. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message