From owner-freebsd-arch@FreeBSD.ORG Mon Jun 26 06:29:33 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B78416A494; Mon, 26 Jun 2006 06:29:33 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4BF744515; Mon, 26 Jun 2006 06:05:40 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5D4F7.dip.t-dialin.net [84.165.212.247]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k5Q5xTGG006343; Mon, 26 Jun 2006 07:59:30 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k5Q65aMl029216; Mon, 26 Jun 2006 08:05:36 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Mon, 26 Jun 2006 08:05:36 +0200 Message-ID: <20060626080536.e9nsgj59xc88ks8o@netchild.homeip.net> X-Priority: 3 (Normal) Date: Mon, 26 Jun 2006 08:05:36 +0200 From: Alexander Leidinger To: "M. Warner Losh" References: <20060624174331.GB2134@garage.freebsd.pl> <20060625.174838.2140534929.imp@bsdimp.com> In-Reply-To: <20060625.174838.2140534929.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new X-Mailman-Approved-At: Mon, 26 Jun 2006 11:39:46 +0000 Cc: pjd@freebsd.org, freebsd-arch@freebsd.org Subject: Re: Accessing disks via their serial numbers. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 06:29:33 -0000 Quoting "M. Warner Losh" (from Sun, 25 Jun 2006 =20 17:48:38 -0600 (MDT)): > In message: <20060624174331.GB2134@garage.freebsd.pl> > Pawel Jakub Dawidek writes: > : I'd like to extend glabel(8) to create providers related to disks based > : on their serial numbers and everntually driver name. > : For example disk ad0 could also be accessed via /dev/disk/ata/3JX0LMGA > : (/dev/disk// or /dev/disk/). > > /dev/disk/ad/3JX0LMGA or /dev/disk/da/3JX0LMGA is the only thing > you'll be able to do. There's no mapping from the dev_t -> device_t, > so you have no way of knowing what the parent of the disk's dev_t. > All the I/O in the system is done with dev_t's. > > Also, the cam system doesn't hook into the newbus system due to when > it was authored. There's been some resistance to moving the scsi > devices into the device_t tree, like all other storage devices. This > is part of the problem indoing thinging completely generically. Should we add an entry to the ideas list about refactoring CAM to hook =20 into newbus? If yes, could you please write a suitable plain text =20 version? Bye, Alexander. --=20 If voting could change the system, it would be illegal. If not voting could change the system, it would be illegal. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137