From owner-freebsd-arch Mon Jul 24 16:48:10 2000 Delivered-To: freebsd-arch@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id EAE7637B5B7 for ; Mon, 24 Jul 2000 16:48:05 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from semuta.feral.com (semuta [192.67.166.70]) by feral.com (8.9.3/8.9.3) with ESMTP id QAA26998; Mon, 24 Jul 2000 16:44:04 -0700 Date: Mon, 24 Jul 2000 16:43:28 -0700 (PDT) From: Matthew Jacob Reply-To: mjacob@feral.com To: "Kenneth D. Merry" Cc: Poul-Henning Kamp , Jack Rusher , freebsd-arch@FreeBSD.ORG Subject: Re: SANs, disks, & devfs In-Reply-To: <20000724163141.A58251@panzer.kdm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I think that might be good for a first shot at it, but it might be nice to > eventually have a way of dealing with more than just CAM-attached devices. > > e.g., you could have some sort of generic kernel registry/database/list > that each peripheral driver instance would register itself with, along > with a serial number of some sort. > > da0 would register its serial number of ABC138557232, and da1 would > register its serial number of XyZ138475393, and ad0 would register its > serial number of XLP83733312. > > You could have a name located in the disklabel take precendence over an > in-disk serial number if it is present, and possibly have an automatically > generated serial number to name table that is loaded in by the loader. So > you could have a name for your tape drive, even though you can't put a > disklabel on it. (Such a table might be generated by sysinstall, or by > some other program.) > > You'd probably also want to have a way to include positional information as > a qualifying argument for the case where you have more than one device with > identical identifiers. So if you had two disks with the name "Fred" in the > disklabel, you would need to call one "Fred@scbus0:1:0" and the other > "Fred@scbus1:3:0". > > If you had two identical disklabel names, you could conceivably qualify > them by the disk serial number, if available, but otherwise you'd have to > fall back on the positional information. All of this is good- and useful. Some of which is addressed in a full devfs. Some of which in possibly enhancing vinum. I'm looking right for a short term solution unless the others show up (which I haven't the time nor charter to chase). -matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message