Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263606AbUAEEm2 (ORCPT ); Sun, 4 Jan 2004 23:42:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264387AbUAEEm2 (ORCPT ); Sun, 4 Jan 2004 23:42:28 -0500 Received: from fw.osdl.org ([65.172.181.6]:55717 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S263606AbUAEEm0 (ORCPT ); Sun, 4 Jan 2004 23:42:26 -0500 Date: Sun, 4 Jan 2004 20:42:17 -0800 (PST) From: Linus Torvalds To: Peter Chubb cc: Andries Brouwer , Rob Love , rob@landley.net, Pascal Schmidt , linux-kernel@vger.kernel.org, Greg KH Subject: Re: udev and devfs - The final word In-Reply-To: <16376.58584.518664.138740@wombat.chubb.wattle.id.au> Message-ID: References: <20040103040013.A3100@pclin040.win.tue.nl> <20040103141029.B3393@pclin040.win.tue.nl> <20040104000840.A3625@pclin040.win.tue.nl> <20040104034934.A3669@pclin040.win.tue.nl> <20040104142111.A11279@pclin040.win.tue.nl> <20040104230104.A11439@pclin040.win.tue.nl> <16376.58584.518664.138740@wombat.chubb.wattle.id.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1391 Lines: 35 On Mon, 5 Jan 2004, Peter Chubb wrote: > > It's worse than that. You can do > mknod fred b maj minor > anywhere on any UNIX filesystem and expect it to a) work and b) refer > to the same device for all time until it is removed. Hmm.. I can see (a) (except for the fact that pretty much all unixes have mount-flags to say "no device files") but I don't see why you'd _ever_ expect (b) to be true. It's patently not true for such rather traditional unix devices as pty's, for example. The "same device" ends up being true only for as long as the master at the other end exists - and the same numbers get re-used in all normal usage for different virtual devices. > I know that Linux already breaks this (the stupid /dev/sg[0-9] that > depend not on the SCSI bus and lun but on the order they're detected, > for example) That "stupid" thing is a hell of a lot less stupid than the alternatives, and is very much equivalent to how pty's work. In fact, the "number according to detection" is pretty much the best device number allocation strategy. It's the _only_ one that doesn't have some incorrect bias built-in. Linus - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/