From owner-cvs-all Tue Jan 12 00:15:52 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA14413 for cvs-all-outgoing; Tue, 12 Jan 1999 00:15:52 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA14406; Tue, 12 Jan 1999 00:15:51 -0800 (PST) (envelope-from mjacob@FreeBSD.org) From: Matt Jacob Received: (from mjacob@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id AAA23408; Tue, 12 Jan 1999 00:15:47 -0800 (PST) Date: Tue, 12 Jan 1999 00:15:47 -0800 (PST) Message-Id: <199901120815.AAA23408@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/sys/cam/scsi scsi_sa.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk mjacob 1999/01/12 00:15:47 PST Modified files: sys/cam/scsi scsi_sa.c Log: Clean up and fix quirk table (was missing necessary wildcards) and add a couple from the old driver. Change format of quirk table to have a preferred block size for devices that need to be QUIRK_FIXED- this is loaded into the last_media_blocksize tag at saregister time and will be used in the first samount case. Change sasetparams to take a sense_flags argument so that probe time testing can be quieter (e.g. with SF_NO_PRINT). Fix a couple of silly bugs in the fixed/variable determination in samount- one was where there was a check against 'guessing' AND the density code being default density- *SMACK* - you're only guessing if you find the media code to be *other* than default density. Second bug was a test against current blocksize being zero- should be a test against whether current blocksize is not equal to the last blocksize if you had wanted to be fixed (suppose you came up in fixed, but not the preferred size?). And if you don't know what the fixed size should be, select 512 as the starting point, not BLKDEV_IOSIZE (reality wins). Finally, in doing the test set to variable mode, make sasetparams non-chatty. Revision Changes Path 1.14 +62 -35 src/sys/cam/scsi/scsi_sa.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message