From owner-freebsd-current Mon Nov 4 14: 2:40 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7730237B401 for ; Mon, 4 Nov 2002 14:02:39 -0800 (PST) Received: from van-laarhoven.org (ap-z-5ab8.adsl.wanadoo.nl [212.129.218.184]) by mx1.FreeBSD.org (Postfix) with SMTP id 0063443E77 for ; Mon, 4 Nov 2002 14:02:33 -0800 (PST) (envelope-from n_hibma@van-laarhoven.org) Received: (qmail 20267 invoked from network); 4 Nov 2002 22:02:26 -0000 Received: from heather.van-laarhoven.org (10.66.0.2) by uitsmijter.van-laarhoven.org with SMTP; 4 Nov 2002 22:02:26 -0000 Date: Mon, 4 Nov 2002 23:02:26 +0100 (CET) From: Nick Hibma To: Nate Lawson Cc: "current@FreeBSD.ORG" Subject: Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken In-Reply-To: Message-ID: <20021104230126.V214-100000@heather.van-laarhoven.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG That wasn't quite what I meant. I was referring to SCSI commands that are sent to the device that return info that would be usable as the number of heads and cylinders. But I guess faking them like the ah[abc] drivers do will work, as this is what many systems are already running with. Nick > See XPT_CALC_GEOMETRY in /sys/dev/aic7xxx/aic7xxx_osm.c > > On Mon, 4 Nov 2002, Nick Hibma wrote: > > Let's work on the 'proper' solution first. > > > > What SCSI commands are suitable for getting the geometry, generically > > on a device? > > > > Nick > > > > > fdisk likely should do something sane in the face of such insanity, > > > but it is unclear what and fdisk is a royal pita to work on anyway :-( > > > > > > Warner > > > > > -- n_hibma@van-laarhoven.org http://www.van-laarhoven.org/ n_hibma@FreeBSD.org http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message