From owner-freebsd-arch Thu Feb 27 11:19:29 2003 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 A875437B401; Thu, 27 Feb 2003 11:19:27 -0800 (PST) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5704043FA3; Thu, 27 Feb 2003 11:19:26 -0800 (PST) (envelope-from wkb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.12.7/8.12.7) with ESMTP id h1RJJKT0001304; Thu, 27 Feb 2003 20:19:20 +0100 (CET) (envelope-from wkb@freebie.xs4all.nl) Received: (from wkb@localhost) by freebie.xs4all.nl (8.12.7/8.12.7/Submit) id h1RJJKAQ001303; Thu, 27 Feb 2003 20:19:20 +0100 (CET) Date: Thu, 27 Feb 2003 20:19:20 +0100 From: Wilko Bulte To: John Baldwin Cc: Peter Pentchev , arch@FreeBSD.ORG, Poul-Henning Kamp , Julian Elischer Subject: Re: (almost) Ready to ditch device major numbers. Message-ID: <20030227201920.A1280@freebie.xs4all.nl> References: <20030227071247.GJ487@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jhb@FreeBSD.ORG on Thu, Feb 27, 2003 at 02:11:58PM -0500 X-OS: FreeBSD 4.8-PRERELEASE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 27, 2003 at 02:11:58PM -0500, John Baldwin wrote: > > On 27-Feb-2003 Peter Pentchev wrote: > > On Wed, Feb 26, 2003 at 02:55:34PM -0800, Julian Elischer wrote: > >> On Wed, 26 Feb 2003, Poul-Henning Kamp wrote: > >> > >> > > >> > We are now (almost) ready to ditch device major numbers if we want to. > >> > > >> > > >> > 5) Remove the d_maj field from struct cdevsw entirely and make > >> > dynamic allocation the default. > >> > > >> > Comments welcome. > >> > >> Sounds right to me.. > >> (I assume there are no NFS related gotchas) > > > > What happens to a FreeBSD NFS server, or rather, to its clients, if the > > server is rebooted and the client remounts the NFS share? Could some > > programs at the client side be confused by the suddenly changed device > > major numbers? > > devices are local to the machine. If you open a cdev from an NFS mount, > it will try to open it as a device on the local machine, not on the remote > machine. Exporting devfs over NFS seems rather pointless. Exporting > devices over NFS is only really useful for diskless boots on systems w/o > devfs (i.e. 4.x). Remembers me of RFS on SysV. There you could have device access on RFS mounted fs. IIRC that is, it's been a while.. -- | / o / /_ _ wilko@FreeBSD.org |/|/ / / /( (_) Bulte To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message