From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1Dqx6t-0007uk-GR for garchives@archives.gentoo.org; Fri, 08 Jul 2005 17:57:59 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j68HuZRD009108; Fri, 8 Jul 2005 17:56:35 GMT Received: from perch.kroah.org (mail.kroah.org [69.55.234.183]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j68HrjlZ018370 for ; Fri, 8 Jul 2005 17:53:46 GMT Received: from [192.168.0.10] (c-24-22-115-24.hsd1.or.comcast.net [24.22.115.24]) (authenticated) by perch.kroah.org (8.11.6/8.11.6) with ESMTP id j68HrTq12103 for ; Fri, 8 Jul 2005 10:53:29 -0700 Received: from greg by echidna.kroah.org with local (masqmail 0.2.19) id 1DqwRm-81I-00 for ; Fri, 08 Jul 2005 10:15:30 -0700 Date: Fri, 8 Jul 2005 10:15:30 -0700 From: Greg KH To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] devfs is dead, let's move on Message-ID: <20050708171530.GE29606@kroah.com> References: <20050706224651.GA19853@kroah.com> <20050707173951.GA10453@lion.gg3.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050707173951.GA10453@lion.gg3.net> User-Agent: Mutt/1.5.8i X-Archives-Salt: 9ae33758-018a-4570-8d10-a99b684caea5 X-Archives-Hash: 7e64629386cdf3f8ed5a50c103e71c83 On Fri, Jul 08, 2005 at 02:39:51AM +0900, Georgi Georgiev wrote: > maillog: 06/07/2005-15:46:51(-0700): Greg KH types > > Ok, now that devfs is removed from the 2.6 kernel tree[1], I think it's > > time to start to revisit some of the /dev naming rules that we currently > > are living with[2]. > > > > To start with, the 061 version of udev offers a big memory savings if > > you use the "default" kernel name of a device[3]. If you do that, it does > > not create a file in its database in /dev/.udevdb/ > > Ah, that will break /etc/init.d/halt.sh > > Particularly the stuff around here: > > ebegin "Saving device nodes" > ... > cd /dev > # Find all devices > find . -xdev -type b -or -type c -or -type l | cut -d/ -f2- > \ > "${devices_real}" > # Figure out what udev created > eval $(grep '^[[:space:]]*udev_db=' /etc/udev/udev.conf) > if [[ -d ${udev_db} ]]; then > # New udev_db is clear text ... > udevinfo=$(cat "${udev_db}"/*) > else > # Old one is not ... > udevinfo=$(udevinfo -d) > fi > # This basically strips 'S:' and 'N:' from the db output, and then > # print all the nodes/symlinks udev created ... > ... > > The script will be unable to figure out what device is being handled by > udev, and what is not. Ugh, why do people care about tarballs of device nodes... :) Anyway, yes, this will break that, but only in the way that it will save more device nodes than it needed to, right? Which isn't really a bad thing, as stuff will still work properly. But it's not the nicest. Also, mind if I move this stuff out into the udev package itself? That will let me keep it up to date with any udev changes (I wasn't even aware that this checked for different versions of udev database info) much easier. thanks, greg k-h -- gentoo-dev@gentoo.org mailing list