From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 16 03:06:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64A0E16A400 for ; Mon, 16 Apr 2007 03:06:06 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0657313C46C for ; Mon, 16 Apr 2007 03:06:05 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.61]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id l3G363Pj073080 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Apr 2007 12:36:03 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Mon, 16 Apr 2007 12:35:57 +0930 User-Agent: KMail/1.9.5 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1611239.L9zfHD47WD"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200704161235.58745.doconnor@gsoft.com.au> X-Spam-Score: -3.977 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.58 on 203.31.81.10 Subject: Device sysctl confusion.. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Apr 2007 03:06:06 -0000 --nextPart1611239.L9zfHD47WD Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I am trying to automatically generate a description for a given device (eg= =20 what it's connected to) but I am having trouble with umass. The other disks I have tried (acd, ad, twed) all have dev.name.number sysct= l=20 nodes but umass disks seem to be inconsistently named. =46or example they appear in kern.disks as daX but the corresponding sysctl= tree=20 is dev.umass.X. I can add some code to handle it but it would be nice if it were fixed (if = it=20 really is broken :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1611239.L9zfHD47WD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQBGIugW5ZPcIHs/zowRAsPHAJ9ydsBoQuN1xOHULRwLjM1aon55pQCfWpVq v90dueFCt5fp3/vfeZj1wLg= =kB+g -----END PGP SIGNATURE----- --nextPart1611239.L9zfHD47WD--