From owner-freebsd-current@FreeBSD.ORG Mon Feb 9 00:04:53 2004 Return-Path: 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 1E2AA16A4CE for ; Mon, 9 Feb 2004 00:04:53 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACCC343D1D for ; Mon, 9 Feb 2004 00:04:52 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.10/8.12.9) with ESMTP id i1984cnJ084773; Mon, 9 Feb 2004 01:04:39 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 09 Feb 2004 01:03:18 -0700 (MST) Message-Id: <20040209.010318.89944026.imp@bsdimp.com> To: julian@elischer.org From: "M. Warner Losh" In-Reply-To: References: <6514.1076282830@critter.freebsd.dk> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: phk@phk.freebsd.dk cc: drosih@rpi.edu cc: current@freebsd.org Subject: Re: Review/Test: Pseudo-device unit number management patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 08:04:53 -0000 In message: Julian Elischer writes: : : : On Mon, 9 Feb 2004, Poul-Henning Kamp wrote: : : > In message , Garance A Drosihn writes: : > >At 9:11 AM +0100 2/8/04, Poul-Henning Kamp wrote: : > >>Julian Elischer writes: : > >> > : > >> > Previously, nmdm started off with 4 devices visible in /dev now : > >> > I don't see that.. The old behaviour was intuitive... You saw : > >> > a device. : > >> : > >>This new behaviour is called a "cloning device" and it doesn't : > >>allocate any resources until they are actually needed, which I : > >>believe is the correct behaviour for pseudo-devices. : > > : > >Could there be some kind of fake "marker-device" sitting there, : > >one which would use basically no resources, and which would : > >change to the real-device when someone opens it? : > : > No, that is not possible with the model we have chosen. : : s/we/I/ s/I/we/ Others have signed off on this model. Maybe you could explain how such a device would exist, and its exact semantics. With a cloning device that phk is talking about, you open /dev/foo, and /dev/foo0, /dev/foo1, etc are automatically created. This is how things work on other systems for cloning devices. One could argue the wisdom of making the tunnel device clonable (I happen to agree with it, but I can see the oppsoing argument). However, sensible cloning semantics have been well understood for years. BSD is very late to the party in not having these sorts of devices before now. Warner