|| ||Linus Torvalds <torvalds-AT-osdl.org>|
|| ||Andries Brouwer <aebr-AT-win.tue.nl>|
|| ||Re: udev and devfs - The final word|
|| ||Sat, 3 Jan 2004 19:04:17 -0800 (PST)|
|| ||Rob Love <rml-AT-ximian.com>, rob-AT-landley.net,
Pascal Schmidt <der.eremit-AT-email.de>,
linux-kernel-AT-vger.kernel.org, Greg KH <greg-AT-kroah.com>|
On Sun, 4 Jan 2004, Andries Brouwer wrote:
> You write long stories - but it really is desirable to have
> stable device numbers.
And I write the long stories because you do not seem to _get_ the point.
The point is that we will most likely ON PURPOSE break those stable device
numbers, for debugging reasons. Because it is _not_ desirable to have
people _believe_ that they can depend on stable device numbers.
> I don't see why that would be relevant. One identifies
> things by their UUID. Order is never important.
And this is exactly how it should be. However, it requires that user code
actually does the right thing.
And to _verify_ that user code properly identifies devices by other things
than device numbers, we should during 2.7.x explicitly _break_ all
dependencies on stable device numbers.
And UUID's are _not_ "device numbers". They fundamentally _cannot_ be
that, because the kernel just doesn't have any information on how to
generate a unique identifier that is actually stable.
The kernel doesn't know what it can depend on - should it look at the UUID
in the boot sector of the disk, or should it look up the UUID using IP
number reverse lookup, or what?
The only thing that can generate a UUID is literally user mode. Which is
_exactly_ why things like udev exists.
So device numbers are _not_ UUID's. Device numbers are needed before the
UUID's have been identified.
And that has been my point all along: device numbers do not have any
meaning. They are neither unique nor stable across reboots. They have no
information AT ALL associated with them. Anybody who thinks that they are
is fundamentally _wrong_ about it.
I agree that for a stable kernel we should then go back to "best effort"
mode, where for simple politeness reasons we should try to keep device
numbers as stable as we can.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to firstname.lastname@example.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
to post comments)