From owner-freebsd-current Sun Nov 3 23:48:27 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 869D537B418 for ; Sun, 3 Nov 2002 23:48:24 -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 0DAA843E4A for ; Sun, 3 Nov 2002 23:48:23 -0800 (PST) (envelope-from n_hibma@van-laarhoven.org) Received: (qmail 17770 invoked from network); 4 Nov 2002 07:48:20 -0000 Received: from uitsmijter.van-laarhoven.org (n?hibma@10.66.0.1) by uitsmijter.van-laarhoven.org with SMTP; 4 Nov 2002 07:48:20 -0000 Date: Mon, 4 Nov 2002 08:48:20 +0100 (CET) From: Nick Hibma To: "M. Warner Losh" Cc: "phk@critter.freebsd.dk" , "jhay@icomtek.csir.co.za" , "current@FreeBSD.ORG" Subject: Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken In-Reply-To: <20021104.002908.95801946.imp@bsdimp.com> Message-ID: <20021104084214.D17734-100000@uitsmijter.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 USB is only the transport. It doesn't add or remove functionality (the only exception being probing for LUNs on CBI devices). If you want to determine the geometry you will have to do this through SCSI commands. I was hoping that the CAM code would be smart enough to request the details from the drive itself, but perhaps there is a good reason for asking the controller for this. It did work without, so it hasn't been implemented yet. Feel free to suggest a SCSI command together with the logic. What is the GET_GEOMETRY used for anyway? Nick > In message: <84292.1036393958@critter.freebsd.dk> > Poul-Henning Kamp writes: > : We should obviously fix it. I have no idea what is possible in USB > : devices in this respect. > > Nor do I. Maybe there's some SCSI command that we can send that is > well defined enough to work often enough. > > However, I'm not clueful enough about SCSI to know if this can be done > (likely reading some mode page will do it in real SCSI), nor about > USB's mass storage devices, nor about all the wonderful and weird > variations that one might find in the wild... > > 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